开发者

PHP mail - need to authenticate with server

开发者 https://www.devze.com 2023-02-05 06:36 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消