note 22818 added to ref.mail
| From: | dw_allen3 at yahoo dot com | Date: | Mon, 01 Jul 2002 13:12:58 +0000 |
| Subject: | note 22818 added to ref.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32459@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";
}
--
http://www.php.net/manual/en/ref.mail.php
http://master.php.net/manage/user-notes.php?action=edit+22818
http://master.php.net/manage/user-notes.php?action=delete+22818
http://master.php.net/manage/user-notes.php?action=reject+22818