I\'m trying to send an HTML message while using SMTP authentication to Gmail in PHP. Here is the script that I am using:
require_once \"Mail.php\";
require_o
See the below URL I think it is very help full to you.
How to send an HTML email using SMTP in PHP
The Gmail's SMTP server address is SMTP.GOOGLEMAIL.COM not SMTP.GMAIL.COM.
Therefore Your settings should be:
// ...
$smtp=array();
$smtp['host']='ssl://smtp.googlemail.com';
See another example:-
Send An HTML & Plain Text Email Using An SMTP Server With PHP & PEAR
http://tonyvirelli.com/slider/php-html-email-using-smtp/