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
Figured it out myself finally.
Thanks to Abid Hussain for providing the link to the example here: http://tonyvirelli.com/slider/php-html-email-using-smtp/
Solution:
'Return-Path' => $from from the headers array.To => $to to the headers array(without this, the to header of the received email is Undisclosed recipients)