RE: [PHP-WIN] php mail()
| From: | Martin Lindhe | Date: | Thu, 24 Jan 2002 10:30:21 +0000 |
| Subject: | RE: [PHP-WIN] php mail() | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-11621@lists.php.net to get a copy of this message | ||
> My Problem:
>
> When I receive the mail, in the from(sender) line is
> something like www-data, but I wont the real sender adress
> for example max@mustermann.de in the from line not in the
> subject line or in the message, just in the from line!
>
> Is this possible or impossible
$address = "reciever@address.com";
$head = "From: PHP Test <test@test.com>\r\n";
$subject = "hello world";
$message = "Hello there\nTest123\n";
mail($address, $subject, $message, $head);
Try this out
/Martin