eyal_barouk
asked on
PHP mail SMTP Authentication
Dear experts,
I have created a class to handle sending mail through PHP.
In the class I add the regular MIME headers to the message for example:
$headers .= "MIME-Version: 1.0\n";
$headers .= "From: \"$from_str\" <$from_email>\n";
$headers .= "Reply-To: <$from_email>\n";
and so on... It all works just fine.
What I couldn't figure out is which headers do I need to add for SMTP authentication?
Thank you.
I have created a class to handle sending mail through PHP.
In the class I add the regular MIME headers to the message for example:
$headers .= "MIME-Version: 1.0\n";
$headers .= "From: \"$from_str\" <$from_email>\n";
$headers .= "Reply-To: <$from_email>\n";
and so on... It all works just fine.
What I couldn't figure out is which headers do I need to add for SMTP authentication?
Thank you.
You can either find the answer in the code of http://phpmailer.sourceforge.net, or you can use phpmailer.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thanks for the A :)