PHP mail - need to authenticate with server
I have a PHP mail script and I need to authenticate with my host's SMTP server. I believe I need to use a 3rd party mail class like XPertMailer, but I'm not sure how to set this up.
Here's my script:
//send email containing their password to their email address
mail($email, 'Forgotten Password', "Here is your password: ".$row['password']."\n\nThanks for using my website!开发者_开发百科!", 'From: support@foobar.com');
Use PHPMailer Class ,
You can find a good tutorial here
精彩评论