Discuss Technical Queries about OrangeHRM
-
zhiyu - Posts:1
- Joined:Tue Sep 04, 2018 3:34 am
Mail Configurations
Post
by zhiyu » Mon Sep 10, 2018 3:16 am
Hello.
I manage to configure notifications by mail. However, when I save, it says "Successfully saved. Test Email could not be sent".
I use smtp.office365.com server.
I use SSL and I can not send test e-mail.
I have also configured username and password.
Please advise.
Thanks,
Regards.
- Attachments
-
![Test Email Not Sent.jpg](./download/file.php?id=12&sid=7b1a96099dcc179c0fbf54f6aaeb09f9)
- Test Email Not Sent.jpg (101.06KiB)Viewed 75900 times
-
kenshi1023 - Posts:3
- Joined:Mon Dec 17, 2018 5:55 pm
Post
by kenshi1023 » Mon Dec 17, 2018 6:22 pm
I believe you need port 465 for ssl; and 578 is for non-ssl.
-
damithk - Posts:7
- Joined:Thu Aug 29, 2019 1:58 pm
Post
by damithk » Fri Aug 30, 2019 8:12 am
Hi zhiyu,
It seems the port and the encryption option you have used are not matching.
If you have intended to use ssl encryption then the port should be 465.
if the port is 587, then encryption should be tls.
-
dipesh - Posts:4
- Joined:Thu Sep 26, 2019 7:04 am
Post
by dipesh » Thu Sep 26, 2019 7:07 am
Hi,
I have done same settings as mentioned still getting error.
- Attachments
-
![Mail config.png](./download/file.php?id=122&sid=7b1a96099dcc179c0fbf54f6aaeb09f9)
- Mail config.png (25.73KiB)Viewed 18182 times
-
damithk - Posts:7
- Joined:Thu Aug 29, 2019 1:58 pm
Post
by damithk » Thu Sep 26, 2019 8:58 am
Hi dipesh,
The configuration you have entered seems correct.
You may find logs related to email sending in symfony/log/email.log file.
You may get some idea from that log file. If you can't understand the error log, you may post the error log here so that someone can help.
-
dipesh - Posts:4
- Joined:Thu Sep 26, 2019 7:04 am
Post
by dipesh » Wed Jan 08, 2020 7:04 am
Wed 08 Jan 2020 12:04:44 PM IST,048 [24499] INFO core.email - ========== Message Begins ==========
Time : January 8, 2020, 12:04 pm
Message Type : Failure
Message : Sending email failed to dipesh.mhatre@finoux.com using smtp. Reason: Connection could not be established with host smtp.gmail.com [ #0]
-
dipesh - Posts:4
- Joined:Thu Sep 26, 2019 7:04 am
Post
by dipesh » Wed Jan 08, 2020 7:06 am
I am able to telnet to smtp.gmail.com on port 465 & 587
ruport@orange:~$ telnet smtp.gmail.com 465
Trying 74.125.68.109...
Connected to smtp.gmail.com.
Escape character is '^]'.
^\Connection closed by foreign host.
ruport@orange:~$ telnet smtp.gmail.com 587
Trying 74.125.68.109...
Connected to smtp.gmail.com.
Escape character is '^]'.
220 smtp.gmail.com ESMTP i3sm2029973pfo.72 - gsmtp
-
dipesh - Posts:4
- Joined:Thu Sep 26, 2019 7:04 am
Post
by dipesh » Wed Jan 08, 2020 7:30 am
This solved my issue.
https://stackoverflow.com/questions/57799538/why-does-email-failed-to-send-smtp-connect-failed-still-appear-after-havin