How to setup SMTP for Gmail?
• If you don’t have one, register a Gmail account or setup your domain for Google applications. • Download the most recent version of PHPMailer • Extract the PHPMailer packages to a folder named phpmailer and upload that folder to your XtreemHost hosting account (using FTP) • Include the phpmailer class file in the page that will send an email. Just include following code in your PHP page: require(“class.phpmailer.php”); • Now, include the below code and edit it with your Gmail account details: • Test the page you created and see if the email is sent successfully. We hope this small tutorial will help everyone that is facing problems with the default PHP Sendmail option that we provide.