note 4948 deleted from mail by ronabop
| From: | ronabop@php.net | Date: | Wed, 11 Oct 2000 05:28:43 +0000 |
| Subject: | note 4948 deleted from mail by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6370@lists.php.net to get a copy of this message | ||
Need to specify a "Form" address when sending email? Here is a small working script that
will allow you to specify the from address along with the subject, body, and headers that will work
with PHP v4.0b4.
------------start code---------------
<?php
// switch the value of $email to the
// persons email address you are sending
// this to.
$email = "username@myisp.com";
$subject = "Working PHP v4.0b4 mail script";
$body = "Um, looks good from here.";
$headers = "From: mymailer@mydomain.comn";
$headers .= "Reply-to: noreply@mydomain.comn";
$headers .= "Content-Type: text/plain; charset=iso-8859-1n";
$headers .= "X-Mailer: CBAS v1.0.09n";
mail ($email, $subject, $body, $headers);
echo "schweeeeeet.....its workin'";
?>
--------------end code--------------