View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0023157||mantisbt||public||2017-07-25 19:16||2017-07-28 02:09|
|Platform||Intel||OS||Windows||OS Version||2012 R2|
|Target Version||Fixed in Version|
|Summary||0023157: phpMailer SMTP Verify Peer|
Unable to send e-mails to mail servers with self-signed certificates.
|Steps To Reproduce|
If you try to send an smtp e-mail from mantis to a mail server with a self-signed ssl certificate via tls protocol, the e-mail silently fails.
To fix, I altered email_api.php and added the code below. Works fine afterwards.
|Tags||No tags attached.|
Forgot to mention that I am running php 7.1.4.
Thanks @lucentminds for your contribution. Adding my comment from the PR:
I would rather not add a config for this. Adds complexity and possibly limits what email library we use in the future. It is not a typical configuration and code can easily be tweaked if someone needs such feature.
Hence, I'm planning to resolve this as won't fix.