Re: Sendmail

From: Date: Mon, 26 Mar 2001 00:30:49 +0000
Subject: Re: Sendmail
Groups: php.general 
Request: Send a blank email to php-general+get-45545@lists.php.net to get a copy of this message
Dear All, I put the code like this : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Email</title> </head> <body bgcolor="FEEBCC" link="#800000" vlink="#800000"" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0"> <?php $to = 'ivs@indo.net.id'; $from = 'dian@cintarasul.com'; $body = " Hello World\r\n"; $headers = "From: $from\r\n"; $headers .= "Reply-To: $from\r\n"; $success = mail($to, "Posted " . date("m/d/Y"), $body, $headers); if uccess){ echo "<B><CENTER>Thank you for your input</CENTER></B>\n"; } else{ echo "Error \n"; } ?> </body> </html> I've try to put this code to another server and it's work. I really lost to figure out what's wrong with my configuration (I'm new in PHP too..) Thanks for all answer ... regards, Atet >it would help if you showed a snippet of your mail code >----- Original Message ----- >From: "Atet Sugiharto" <mlgindo@indo.net.id> >To: <php-general@lists.php.net> >Sent: Saturday, March 24, 2001 1:49 AM >Subject: [PHP] Sendmail > > >> Hi , >> >> I'm at a loss....I've searched throught the knowledgebase, archives, docs, >> etc but I can't figure out what's going on. The problem is when using the >> mail() function nothing gets send and I don't get any error messages >either. >> It's like the message gets eaten by a black hole. >> >> I already put "-t -i" in the path, but still doesn't work .. >> Anybody can help me ? >> >> Regards, >> >> Atet Sugiharto >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >> For additional commands, e-mail: php-general-help@lists.php.net >> To contact the list administrators, e-mail: php-list-admin@lists.php.net >> >> >

« previous php.general (#45545) next »