In this video you will learn the complete process of sending email to a gmail account ( or any other email services) in few easy steps. Php mailer class file is used to send email from localhost.
If you are host a website from any web hosting services like then also use this method to send email from your website to any other gmail account.

SMTP for gmail :

Php Mailer file 1. (class.phpmailer.php):

Php Mailer file 2 : (class.smtp.php):

Front end frame file (index.html) :

Php function file (mail.php) :

Comments (3)

  1. It is sending using localhost, so what do i need to change when i put my website in internet to keep sending email? Btw. Thank you for tutorial. 🙂 and thanks in advance for the answer

Comments are closed.