Page 1 of 1

need Help! in sending mail/

Posted: Sat Feb 02, 2008 6:42 am
by phpMover
i need for send email. pls, the mail function confirm that i already sent teh message but unfortunately i check my mail, i never found any mails, from my mail function

Code: Select all

 
$mail = mail('toany@where.com','firstmessage','meycontent','from:webmaster@info.com');
if($mail) {echo 'message is sent';}
 //will output message sent, but i nver found in my mail, ! thanks for the help
 

Re: need Help! in sending mail/

Posted: Sat Feb 02, 2008 9:40 am
by bdlang
Welcome to the forums.

Unfortunately, checking whether or not the mail() function returns FALSE is about the best troubleshooting you can do in your script.

What OS are you working with?

Is there a mail server running on that host and ready to accept mail from the httpd user?

Check the config options shown in the PHP Manual entry for Mail Functions.

Re: need Help! in sending mail/

Posted: Sat Feb 02, 2008 9:45 am
by phpMover
am using windows xp.... i dont have any mail server..
but i configure at my ini file:

smtp port = 25
then smtp =localhost;


what else?
thanks for helping?