note 66113 added to function.mail

From: Date: Mon, 15 May 2006 06:10:02 +0000
Subject: note 66113 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-111298@lists.php.net to get a copy of this message
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 ---- Server IP: 66.163.161.117 Probable Submitter: 201.127.106.237 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- http://master.php.net/note/edit/66113 Del: integrated -- http://master.php.net/note/delete/66113/integrated Del: useless -- http://master.php.net/note/delete/66113/useless Del: bad code -- http://master.php.net/note/delete/66113/bad+code Del: spam -- http://master.php.net/note/delete/66113/spam Del: non-english -- http://master.php.net/note/delete/66113/non-english Del: in docs -- http://master.php.net/note/delete/66113/in+docs Del: other reasons-- http://master.php.net/note/delete/66113 Reject -- http://master.php.net/note/reject/66113 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#111298) next »