Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using mail() on WinXP Pro

Status
Not open for further replies.

jemminger

Programmer
Joined
Jun 25, 2001
Messages
3,453
Location
US
hello all,

i have winXP Pro with a working smtp server (comes with IIS)...any idea how to get php mail() to work with it? i already have set

SMTP = localhost

in php.ini

thanks,

=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); }
 
Just to ask the dumb question....

You do have an SMTP server running on the same machine you're running PHP on, right?

You also need to set the sendmail_from setting.

From there it's just a matter of invoking mail(). For more complex email messages, you might want to look into PHPMailer:
Want the best answers? Ask the best questions: TANSTAAFL!!
 
yep, both running on the same machine (localhost)

i've tried phpmailer too, but just get the error
"Mailer Error: Language string failed to load: recipients_failed (myemail@hotmail.com)"



=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); }
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top