Re: mail problem at interland
| From: | Richard Lynch | Date: | Fri, 28 Jan 2005 17:06:52 +0000 |
| Subject: | Re: mail problem at interland | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-207612@lists.php.net to get a copy of this message | ||
R'twick Niceorgaw wrote:
> Hi David,
>
> On Thu, January 27, 2005 9:09 pm, David Edwards said:
>> Hi,
>>
>> $headers .= "MIME-Version: 1.0\n";
>> $headers .= "Content-type: text/plain; charset=iso-8859-1\n";
>> $headers .= "X-Priority: 1\n";
>> $headers .= "X-MSMail-Priority: High\n";
>> $headers .= "X-Mailer: php\n";
>> $headers .= "From: $emailfrom\n";
>
> I believe the headers have to end with a blank line? If I remeber
> correctly, the last line in the $headers should have two new lines like
>
> $headers .= "From: $emailfrom\n\n";
mail() will take care of that.
You might want to use \r\n instead of just \n, as that's what it's
technically supposed to be -- Though I think it works just fine on
Un*x-like boxes to use just \n...
You might want to add Reply-to: as well as From with the same setting to
keep more email clients happy.
--
Like Music?
http://l-i-e.com/artists.htm