note 66113 rejected from function.mail by bjori
| From: | bjori@php.net | Date: | Mon, 15 May 2006 08:28:20 +0000 |
| Subject: | note 66113 rejected from function.mail by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-111304@lists.php.net to get a copy of this message | ||
Note Submitter: vrmp00 at hotmail dot com
----
What about e-mails through PHP that request read receipt:
"
<?php
$headers .= "From: Me<mymail@mail.com>\n";
$headers .= "Return-Path: <mymail@mai.com>\n";
//Return bouned mails to.
$headers .= "X-Priority: 1 \n";
//Message priority is set to HIGH
$headers .= "X-MSMail-Priority: High\n";
//Message Priority for Exchange Servers
$headers .= "Disposition-Notification-To: Me<mymail@mail.com>\n";
//Read receipt
//$headers .= "X-Mailer: PHP(".$_SERVER['REMOTE_ADDR'].")\n";
//IP address of who sent the mail.
$email = "target@mail.com";
// Recipients address
$subject = "Something";
// Subject
$message .= "Hello, \n \n";
// Email body
$message .= "Balh blah blah \n \n";
$message .= "Thanks, \n";
$message .= "ATTE: Me \n";
mail($email, $subject, $message, $headers);
?>
"
But the output of the programm is :
"
Notice: Undefined variable: headers in D:\Send-Emails-with-Read-Reciepts.php on line 48
Notice: Undefined variable:
message in D:\Send-Emails-with-Read-Reciepts.php
on line 58
"
Can you help me out?
Thanks in advance