Link to home
Start Free TrialLog in
Avatar of eyal_barouk
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.
Avatar of alain34
alain34
Flag of United Kingdom of Great Britain and Northern Ireland image

You can either find the answer in the code of http://phpmailer.sourceforge.net, or you can use phpmailer.
ASKER CERTIFIED SOLUTION
Avatar of nicholassolutions
nicholassolutions
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the A :)