user547794
user547794

Reputation: 14511

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: [email protected]');

Upvotes: 1

Views: 853

Answers (1)

Sudantha
Sudantha

Reputation: 16194

Use PHPMailer Class ,

You can find a good tutorial here

Upvotes: 2

Related Questions