kenrbnsn Posted August 1, 2006 Share Posted August 1, 2006 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 Link to comment https://forums.phpfreaks.com/topic/16012-why-doesnt-mail-work/page/2/#findComment-67465 Share on other sites More sharing options...
ronverdonk Posted August 1, 2006 Share Posted August 1, 2006 If applicable, just change your settings:[code] SMTP = your mailserversmtp_port = 25sendmail_from = youruserid@yourmailserver[/code]Ronald ;D Link to comment https://forums.phpfreaks.com/topic/16012-why-doesnt-mail-work/page/2/#findComment-67467 Share on other sites More sharing options...
TerryR Posted August 4, 2006 Author Share Posted August 4, 2006 :) 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. Link to comment https://forums.phpfreaks.com/topic/16012-why-doesnt-mail-work/page/2/#findComment-69206 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.