Page 1 of 1

Mail Configurations

Posted: Mon Sep 10, 2018 3:16 am
by zhiyu
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. :cry:


Thanks,

Regards.

Re: Mail Configurations

Posted: Mon Dec 17, 2018 6:22 pm
by kenshi1023
I believe you need port 465 for ssl; and 578 is for non-ssl.

Re: Mail Configurations

Posted: Fri Aug 30, 2019 8:12 am
by damithk
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.

Re: Mail Configurations

Posted: Thu Sep 26, 2019 7:07 am
by dipesh
Hi,

I have done same settings as mentioned still getting error.

Re: Mail Configurations

Posted: Thu Sep 26, 2019 8:58 am
by damithk
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.

Re: Mail Configurations

Posted: Wed Jan 08, 2020 7:04 am
by dipesh
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]

Re: Mail Configurations

Posted: Wed Jan 08, 2020 7:06 am
by dipesh
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

Re: Mail Configurations

Posted: Wed Jan 08, 2020 7:30 am
by dipesh
This solved my issue.

https://stackoverflow.com/questions/57799538/why-does-email-failed-to-send-smtp-connect-failed-still-appear-after-havin