php-general | 2001122
Date: 12/18/01
- Next message: Don Read: "RE: [PHP] addslash/stripslashes"
- Previous message: Julio Nobrega Trabalhando: "Re: [PHP] Re: $PHPSESSID on PHP 4.1.0"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Eureka! That seems to have fixed the problem. Now to test on the Mac clients.
G
On Tue, 18 Dec 2001 23:11:31 +0100, TD - Sales International Holland B.V. wrote:
>On Tuesday 18 December 2001 15:51, you wrote:
>
>Ok, just a guess here.... I'm not that familiar with writting my own
>headers.... What I THINK that might help is using only \n for a newline and
>not the \r. \r is windoze stuff while the first mta's (mail transfer agents)
>where unix systems. Perhaps that's your problem... then again, it's just a
>guess :-)
>If this is true, your probably only need that for the headers and not for the
>content of the email, since if you'd write an email in outlook express and
>press enter in it it should be a CRLF (\r\n)
>
>regards
>
>> Okay I know I must be overlooking somethign super obvious but....
>>
>> I am trying to send a simple HTML email. It works in Netscape mail, Pegasus
>> etc however in Outlook and Outlook express it actually places the
>>
>> Content-Type: text/html;
>> charset=iso-8859-1 Content-Transfer-Encoding: 7bit
>>
>> in the body of the email all displays all the HTML instead of showing the
>> email as a web page. I ahev inserted the code below. I know it is something
>> stupid, so please help.
>>
>> if ($htmlEmail) {
>> $headers = "MIME-Version: 1.0\r\n";
>> $headers .= "Content-Type: text/html; charset=iso-8859-1\r\n";
>> $headers .= "Content-Transfer-Encoding: 7bit" . "\r\n";
>> $body = $html_body;
>> }
>>
>> $headers .= "From: $from\r\n\";
>> ($cc != "")?($headers .= "Cc: $cc\r\n"):("");
>> ($bcc != "")?($headers .= "Bcc: $bcc\r\n"):("");
>>
>> mail($email, $subject, $body, $headers);
>>
>> Anyone see what I am doing wrong? Thanks in advance!
>>
>> Gerard
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Don Read: "RE: [PHP] addslash/stripslashes"
- Previous message: Julio Nobrega Trabalhando: "Re: [PHP] Re: $PHPSESSID on PHP 4.1.0"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

