473,320 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Using mail() for HTML bodies.

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: <html><body><table....

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&auml;idetud ankeet', $message,
$headers))

My problems:
the body remains plain text in Outlook Express.
>From is not visible
The &auml; 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

Oct 12 '07 #1
4 1378
In our last episode,
<11**********************@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: <html><body><table....
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&auml;idetud ankeet', $message,
$headers))
My problems:
the body remains plain text in Outlook Express.
>>From is not visible
The &auml; 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 <http://larseighner.com/ <http://myspace.com/larseighner>
Countdown: 465 days to go.
What do you do when you're debranded?
Oct 12 '07 #2
On 12/10/2007 in message
<11**********************@v23g2000prn.googlegroups .comjodleren 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
Oct 12 '07 #3
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: <html><body><table....

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&auml;idetud ankeet', $message,
$headers))

My problems:
the body remains plain text in Outlook Express.
>>From is not visible
The &auml; 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
Oct 13 '07 #4
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: <html><body><table....

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&auml;idetud ankeet', $message,
$headers))

My problems:
the body remains plain text in Outlook Express.
>>From is not visible
The &auml; 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.
js*******@attglobal.net
==================

Oct 13 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Marian Heddesheimer | last post by:
Hi folks, I received a complaint from a user that my form mailer sends empty mail bodies. I have tested it and found that my mailer seems fine. But the user still gets empty mail bodies from the...
0
by: Chuck Amadi | last post by:
fp = file("/home/chuck/pythonScript/testbox") mbox = mailbox.UnixMailbox(fp, email.message_from_file) # list of body messages. bodies = # mail is the file object for mail in mbox: print...
1
by: chuck amadi | last post by:
Hi I have managed to print the output of the get_payload to screen but I need to write to a file as I only require the email body messages from the mailbox.My script using the fp.readlines()...
8
by: John Brock | last post by:
I am currently using a VB.NET program to send out e-mails with plain text bodies (plus one attachment). The emails are being received as Rich Text messages (probably just my personal Outlook...
2
by: Scamjunk | last post by:
I have been desperately looking for a treeview-type solution for my problem for the past three weeks and have been greatly unsuccessful. I am totally new to the world of XSLT and I *don't know*...
3
by: Schizoid Man | last post by:
Hi, I'm a novice whose just about migrating to C++ after cutting my teeth on C for a few years. To start with I'm using Microsoft's out-of-the-box Visual C++ Express Edition compiler and I...
1
by: Roberto Rocco | last post by:
Hello, I'm using VS 2005 and I need to send a mail body which contains german umlauts (ä,ö,ü). When I receive the mail in Outlook 2003 (english operating system) I always get a '|' or other...
8
by: Yakov | last post by:
I'd like a tool that performed inlining of function bodies of which do not appear in the .h file. Really. gcc on Linux. Yakov
4
by: Sonnich Jensen | last post by:
Hi all! I use the following for sending mail from ASP, but there is a problem - it goes to a intranet thing (eRoom) which does not read it, while Outlook etc does not have any problems. eRoom...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.