Error When Sending Mail from Site (phpMailer)

  • Answered
When sending an email through PHP's mail() function, it sends successfully, but it comes up in Gmail as being "via". I attempted to follow the instructions on using phpMailer to have SMTP-authenticated mail (to hopefully prevent this), but it will not connect to the SMTP server.

When sending email via the sample script (as well as the script included with the GitHub version of phpMailer 5.2.14, with my information inserted) I receive the following error, although I have verified that the information I've entered appears to be correct:

Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure in /home/f****5/public_html/[domain].com/vendor/phpmailer/class.smtp.php on line 344
Message could not be sent.
Mailer Error: SMTP connect() failed.
Hello bandtrumpe7, Sorry to hear you are having issues with sending via the phpmailer. The error received indicates that it cannot connect to SMTP failed. Be sure to double check the SMTP settings and ensure they are correct for connecting and sending the email from the server. You can also check into the troubleshooting guide for the script: Kindest Regards, Scott M