need Help! in sending mail/

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
phpMover
Forum Newbie
Posts: 3
Joined: Sat Feb 02, 2008 6:37 am

need Help! in sending mail/

Post 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
 
bdlang
Forum Contributor
Posts: 395
Joined: Tue May 16, 2006 8:46 pm
Location: Ventura, CA US

Re: need Help! in sending mail/

Post 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.
phpMover
Forum Newbie
Posts: 3
Joined: Sat Feb 02, 2008 6:37 am

Re: need Help! in sending mail/

Post 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?
Post Reply