Using mail() for HTML bodies.
Using mail() for HTML bodies.
am 12.10.2007 23:36:25 von jodleren
Hi fellow
I read about this here, and I need a simple form to post and mail a
simple table (formatting) in HTML.
My message is somthing like:
I have a header as this.
$headers =3D "From:".$_POST["v8"]."\r\n".
"To:sonnich@--hot.ee\r\n".
"MIME-Version: 1.0\r\n" .
"Content-Type: text/html;\r\n";;
if (mail('sonnich@--hot.ee', 'Täidetud ankeet', $message,
$headers))
My problems:
the body remains plain text in Outlook Express.
>From is not visible
The ä remains as is in the header (should be ä)
Though my email is there twice, but the mail only once :-)
What do I dop wrong?
WBR
Sonnich
Re: Using mail() for HTML bodies.
am 12.10.2007 23:45:27 von Lars Eighner
In our last episode,
<1192224985.050093.163490@v23g2000prn.googlegroups.com>, the lovely and
talented jodleren broadcast on comp.lang.php:
> Hi fellow
> I read about this here, and I need a simple form to post and mail a
> simple table (formatting) in HTML.
> My message is somthing like:
> I have a header as this.
> $headers = "From:".$_POST["v8"]."\r\n".
> "To:sonnich@--hot.ee\r\n".
> "MIME-Version: 1.0\r\n" .
> "Content-Type: text/html;\r\n";;
> if (mail('sonnich@--hot.ee', 'Täidetud ankeet', $message,
> $headers))
> My problems:
> the body remains plain text in Outlook Express.
>>From is not visible
> The ä remains as is in the header (should be ä)
> Though my email is there twice, but the mail only once :-)
> What do I dop wrong?
Tried to put html in e-mail. That is wrong. It can be done, but it is a
good thing you don't know how.
--
Lars Eighner
Countdown: 465 days to go.
What do you do when you're debranded?
Re: Using mail() for HTML bodies.
am 13.10.2007 01:11:49 von Jeff Gaines
On 12/10/2007 in message
<1192224985.050093.163490@v23g2000prn.googlegroups.com> jodleren wrote:
>My problems:
>the body remains plain text in Outlook Express.
It gets some things right then :-)
--
Jeff Gaines Damerham Hampshire UK
Indecision is the key to flexibility
Re: Using mail() for HTML bodies.
am 13.10.2007 12:34:08 von NerdRevenge
jodleren wrote:
> Hi fellow
>
> I read about this here, and I need a simple form to post and mail a
> simple table (formatting) in HTML.
> My message is somthing like:
>
> I have a header as this.
>
> $headers = "From:".$_POST["v8"]."\r\n".
> "To:sonnich@--hot.ee\r\n".
> "MIME-Version: 1.0\r\n" .
> "Content-Type: text/html;\r\n";;
> if (mail('sonnich@--hot.ee', 'Täidetud ankeet', $message,
> $headers))
>
> My problems:
> the body remains plain text in Outlook Express.
>>From is not visible
> The ä remains as is in the header (should be ä)
>
> Though my email is there twice, but the mail only once :-)
>
May I cordially request that the gurus cut the guy some slack.
While I agree that plain text is best, generally, sometimes for
limited distribution html may be best.
For example, suppose that one needs to email a table to a
computer-illiterate boss.... one, known recipient.
I suppose one could build a .pdf and send that, but it would seem
that is overkill for a simple report to the boss.
bill
Re: Using mail() for HTML bodies.
am 13.10.2007 15:14:54 von Jerry Stuckle
bill wrote:
> jodleren wrote:
>> Hi fellow
>>
>> I read about this here, and I need a simple form to post and mail a
>> simple table (formatting) in HTML.
>> My message is somthing like:
>>
>> I have a header as this.
>>
>> $headers = "From:".$_POST["v8"]."\r\n".
>> "To:sonnich@--hot.ee\r\n".
>> "MIME-Version: 1.0\r\n" .
>> "Content-Type: text/html;\r\n";;
>> if (mail('sonnich@--hot.ee', 'Täidetud ankeet', $message,
>> $headers))
>>
>> My problems:
>> the body remains plain text in Outlook Express.
>>> From is not visible
>> The ä remains as is in the header (should be ä)
>>
>> Though my email is there twice, but the mail only once :-)
>>
>
> May I cordially request that the gurus cut the guy some slack.
> While I agree that plain text is best, generally, sometimes for limited
> distribution html may be best.
>
> For example, suppose that one needs to email a table to a
> computer-illiterate boss.... one, known recipient.
>
> I suppose one could build a .pdf and send that, but it would seem that
> is overkill for a simple report to the boss.
>
> bill
>
Sorry, I agree with the others. HTML email has too many problems. It
doesn't help to send it to the boss if he can't read it.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================