Using the PHPMailer class with GMail's SMTP??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
beckwiga
Forum Newbie
Posts: 9
Joined: Wed Sep 21, 2005 7:45 pm

Using the PHPMailer class with GMail's SMTP??

Post by beckwiga »

Has anyone successfully accomplished this? GMail SMTP requires TLS or SSL authentication now (I'm not poisitive it did before), but I have been unable to incorporate the PHPMailer class into my PHP script. I would like to use the SMTP of GMail because a) it's free and b) I hear it's pretty reliable. I don't care that my address will be known as I do not intend to spam. I have read that GMail SMTP server are good to go through because, with a little thought behind the FROM and SUBJECT, emails from me to new customers will be less likely to be trashed as junk mail. Anyone know how to get me going? I know I need to be be using eith port 465 or 587 for GMail SMTP. I can configure Outlook to use my GMail account just fine, my difficulty is using PHPMailer to connect and authenticate by way of a PHP script. TIA -- beckwiga
Post Reply