note 22818 rejected from ref.mail by spic

From: Date: Mon, 26 Aug 2002 11:03:56 +0000
Subject: note 22818 rejected from ref.mail by spic
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-35642@lists.php.net to get a copy of this message
Hey, can anyone tell me how to set the path to sendmail? I'm running Indigomail ( sendmail for windows ) and I got it to send mail with perl ... I'm just unfamiliar with the syntax for the php mail() function ... Here's what i have: $sendmail = "D:\\inetpub\\scripts\\sendmail.exe"; $To = "dw_allen3@yahoo.com"; if (mail($To, "Tech Maintenance Request from $name", "Tech Maitenance Request\n\n $name $room - $building:\n\n Description\:\n $problem \n", "From: $email", "sendmail_path: $sendmail")) { print "Could not complete your request, <b>$sendmail</b>"; } else { print "The request was successfully mailed to $To"; }

« previous php.notes (#35642) next »