Friday, February 19, 2010

Use Gmail Account SMTP in PHP

Use php mailer() function in place of php mail().

You can use PHPmailer :
http://phpmailer.codeworxtech.com/

what you need to do is, change the value of host to
$host = "ssl://smtp.gmail.com";

and port number to
$port = 465;

Username will be your gmail id

0 comments:

Post a Comment