Ok, I have an interesting one here. I'm trying to send an e-mail from Server A, through Server B, and to a recipient using PHP on Server A. Server B relays the e-mail because Server A does not have an internet connection. Now, I want to request a read/delivery receipt for the user sending the mail but if I specify the Disposition-Notification-To: Header the mail fails to deliver because the username/domain that Server A is executing the script with comes through. I don't know if this makes any sense but here is some stuff from the logs....
This is from the server the mail is being sent to....(Recipient Server) Jul 8 13:32:13 www sendmail[26808]: h68HWCY26808: ruleset=check_mail, arg1=<[EMAIL PROTECTED]>, relay=ServerB.myDomain.com [64.113.42.5], reject=501 5.1.8 <[EMAIL PROTECTED]>... Domain of sender address [EMAIL PROTECTED] does not exist Jul 8 13:32:13 www sendmail[26808]: h68HWCY26808: from=<[EMAIL PROTECTED]>, size=256213, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=ServerB.myDomain.com [64.113.42.5] This is from Server A: Jul 8 12:43:48 ServerA sendmail[31361]: MAA31361: from=uucp, size=256011, class=0, pri=286011, nrcpts=1, msgid=<[EMAIL PROTECTED]>, [EMAIL PROTECTED] Jul 8 12:43:49 ServerA sendmail[31363]: MAA31361: [EMAIL PROTECTED], ctladdr=uucp (10/14), delay=00:00:01, xdelay=00:00:01, mailer=smtp, relay=ServerB.myDomain.com. [206.162.111.100], stat=Sent (2.0.0 h68GhoQ18448 Message acc epted for delivery) This is from Server B: Jul 8 12:43:56 ServerB sendmail[18450]: h68GhoQ18448: to=<[EMAIL PROTECTED]>, delay=00:00:06, xdelay=00:00:05, mailer=esmtp, pri=286213, relay=mail.recipient.com. [64.113.39.156], dsn=5.6.0, stat=Data format error Jul 8 12:43:56 ServerB sendmail[18450]: h68GhoQ18448: h68GhuQ18450: DSN: Data format error Jul 8 12:43:57 ServerB sendmail[18450]: h68GhuQ18450: to=<[EMAIL PROTECTED]>, delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=286313, relay=ServerA.myDomain.com. [206.162.111.97], dsn=2.0.0, stat=Sent (MAA31368 Message accepted for delivery) Any help would be greatly appreciated.....Thanks in advance! Brian Here is my code also: (I'm using PEAR Mail and MIME) $FullName=$r["FullName"]; $Email=$r["Email"]; $ConfirmVia=$r["ConfirmVia"]; $ConfirmTo=$r["ConfirmTo"]; if($ConfirmVia=="Email" || $ConfirmVia=="EMail") { $file="/tmp/Quote".$Theresult.".pdf"; system("ps2pdf $filename $file"); //This is the part that actually sends the mail include('Mail.php'); include('Mail/mime.php'); $text = 'The quote that you requested is attached. Thank you for the opportunity to quote your enclosure needs!\n\n'.$FullName.'\n'.$Email; $html = '<html><body><font face=\"Arial\">The quote that you requested is attached. Thank you for the opportunity to quote your enclosure needs!<br><br>'.$FullName.'<br>'.$Email.'</font></body></html>'; $crlf = "\r\n"; $hdrs = array( 'From' => $Email, 'Subject' => 'Your Quote # '.$Theresult, 'Disposition-Notification-To' => $Email, 'Return-Path' => $Email ); $mime = new Mail_mime($crlf); $mime->setTXTBody($text); $mime->setHTMLBody($html); //$mime->addAttachment($file, 'text/plain'); $mime->addAttachment($file); $body = $mime->get(); $hdrs = $mime->headers($hdrs); $mail =& Mail::factory('mail'); $mail->send($ConfirmTo, $hdrs, $body); //End mail part system("rm -f $file"); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php