mail() question

From: Date: Thu, 24 Jan 2002 04:46:15 +0000
Subject: mail() question
Groups: php.general 
Request: Send a blank email to php-general+get-81822@lists.php.net to get a copy of this message
I’ve tried Reading The Fine Manual on this, and can’t find an easy answer. Here’s the headers for a message from the script, and the error I’m getting on some mail it sends… Return-Path: <wwwrun> Received: (from wwwrun@localhost) by arsenic.mth.com (8.11.6/8.11.3) id g0O4UCQ27546; Wed, 23 Jan 2002 21:30:12 -0700 Date: Wed, 23 Jan 2002 21:30:12 -0700 Message-Id: <200201240430.g0O4UCQ27546@arsenic.mth.com> To: somebody@somewhere.com Subject: Order Receipt From: bpinfo@addasize.com Reply-To: HYPERLINK "mailto:bpinfo@addasize.com"bpinfo@addasize.com Some mail servers give this response: The original message was received at Wed, 23 Jan 2002 21:30:12 -0700 from wwwrun@localhost ----- The following addresses had permanent fatal errors ----- somebody@somewhere.com (reason: 550 REQUESTED ACTION NOT TAKEN: DNS FAILURE) ----- Transcript of session follows ----- ... while talking to mx.somewhere.com.: >>> MAIL From:<wwwrun@arsenic.mth.com> <<< 550 REQUESTED ACTION NOT TAKEN: DNS FAILURE 554 5.0.0 Service unavailable Here’s the line of PHP I’m using to send the mail: mail($CustomerInfo[Email], "Order Receipt", $text,"From: $SiteInfo[Email]\nReturn-Path: $SiteInfo[Email]\nReply-To: $SiteInfo[Email]"); arsenic.mth.com is the LAN name of my box. How can I get PHP to send mail as if it was from the DNS name for the box (mthmarketing.com)? Matthew Walker Ecommerce Project Manager Mountain Top Herbs --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.313 / Virus Database: 174 - Release Date: 1/2/2002

« previous php.general (#81822) next »