Re: mail function

From: Date: Sun, 20 Jul 2003 17:36:35 +0000
Subject: Re: mail function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-155985@lists.php.net to get a copy of this message
* Thus wrote Peda (ena-mona@eunet.yu): > I put this PHP script on web server: > > <?php if (mail("ena-mona@eunet.yu", "brati", "peda", > "From: Peda")== > TRUE) print("U redu je"); else print("Greska"); ?> > > But It seems that mail function doesn't work. I don't get any e-mail. > > Can anyone tell me what is wrong. What does your sendmail_path say in your config, and what OS are you running. Read: http://us2.php.net/mail and http://php.net/function.mail Oh, and your from should contain a valid email too, otherwise it prolly get bounced to /dev/null From: "Peda" <email@domain.tdl> Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#155985) next »