Jump to content

Archived

This topic is now archived and is closed to further replies.

TerryR

Why doesn't mail() work?

Recommended Posts

That depends. If the machine the webserver is running on is also the mailserver, then localhost makes sense.  Talk to the administrators of the webserver about your problem.

Ken

Share this post


Link to post
Share on other sites
If applicable, just  change your settings:

[code] SMTP = your mailserver
smtp_port = 25
sendmail_from = youruserid@yourmailserver
[/code]

Ronald  ;D

Share this post


Link to post
Share on other sites
:) at last!
Thanks to all for your help. I did what I should have done to start with, and went to the FAQs on my webserver host, where it says...

Use the PHP mail function and set the mail from using the following line of code - replacing email@mydomain with the correct domain name.

ini_set("sendmail_from", " email@mydomain ");

...and all is now OK.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.