PHPMailer Tutorial – How To Configure with Gmail Account

PHPMailer, you may have used it before and of course you should know PHP too to continue this tutorial otherwise you won’t get anything. PHPMailer is very handy – easy to use among all 3rd party mail sender application available out there. PHPMailer supports nearly all possiblities to send email: mail(), Sendmail, qmail & direct to SMTP server. We usually use PHPMailer for our individual web hosting email accounts. This time we are going to configure it and send email from our regular Gmail accounts. Please try the script below as the configuration is well tested and working absolutely fine.

As you may know, it is simply to send mails with the PHP mail() function. So why use PHPMailer? Isn’t it slower? Yes that’s true, but PHPMailer makes it easy to send e-mail, makes it possible to attach files, send HTML e-mail, etc. With PHPMailer you can even use your own SMTP server and avoid Sendmail routines used by the mail() function on *nix platforms.

Here is the PHPMailer home site : http://www.worxware.com/ and please visit http://phpmailer.worxware.com/index.php?pg=tutorial for a complete tutorial of PHPMailer from it’s home site.

PHPMailer configuration for Gmail

Please give me your feedbacks. Thank you :)

Comments

  1. Richard says

    Very nice collection of stuff you have got here. Keep it up and soon you will have build a great knowledge base for newcomers. Thank you!

  2. sam says

    hey could i have more details on how to get this working with the fogot.php file you used in the last tutorial? I am not sure what i am meant to do with this code and if i need any addtion code to make this work?
    thanks
    sam

Leave a Reply