Hosting Software News & Commentary Hosting Software News & Commentary Hosting Software News & Commentary

I was adding automated mailing lists to the admin panel of Radio AURA’s website when I noticed that the university firewall was blocking email from the server for some reason when I was using PHP’s mail(). Then I decided to use PHPMailer and send the e-mails through Gmail’s SMTP servers but PHPMailer was returning an error. After switching the debug option on, I found out that the authentication with Gmail was failing because PHPMailer is using port 25 by default (and Gmail’s SMTP does not) and I wasn’t using SSL or TLS encryption for the authentication. I found a solution here, and it solves the problem by adding two lines of code to PHPMailer’s class.smtp.php. Nice, simple and most importantly -  works !

  1. No user reviews yet.


Leave a Reply





Blogroll