473,406 Members | 2,293 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,406 software developers and data experts.

sending mail in html AND text format ?

HI,

I want to be sure that users receive and can read my mails.

How can I send mail in HTML AND text Format in one send ?

thx
Jul 21 '05 #1
3 1406
You cannot do this in a single send. If you want to do this then you will have to send out two seperate emails - one in plain text format and one in HTML format

Gary
Jul 21 '05 #2
DJM
Easiest way to do this:

Start your message with <!--
Then display the message in plain text.
Close with -->
And begin your HTML version.

You may want to include a line of text at the end of the plain text
indicating that what follows is HTML.

The HTML comment tags will prevent it from being displayed by HTML-enabled
mail readers.

However, your non-HTML-enabled readers will display the message twice, once
as plain text in the HTML comment tags, and then the raw HTML code attached.
This annoys many such users. It would be preferable to allow the user to
store a preference for receiving HTML or plain text and only send that
version.

<td*******@netarchitects-europe.com> wrote in message
news:40**************************@posting.google.c om...
HI,

I want to be sure that users receive and can read my mails.

How can I send mail in HTML AND text Format in one send ?

thx

Jul 21 '05 #3
The correct way to do this is to send a Multipart MIME message. Place the
HTML version in one part, and the text version in another. Nearly every
e-mail reader can understand multipart MIME, and will only show the part
that the user is interested in.

--- Nick

"DJM" <dj*@spam.bait> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
Easiest way to do this:

Start your message with <!--
Then display the message in plain text.
Close with -->
And begin your HTML version.

You may want to include a line of text at the end of the plain text
indicating that what follows is HTML.

The HTML comment tags will prevent it from being displayed by HTML-enabled
mail readers.

However, your non-HTML-enabled readers will display the message twice, once as plain text in the HTML comment tags, and then the raw HTML code attached. This annoys many such users. It would be preferable to allow the user to
store a preference for receiving HTML or plain text and only send that
version.

<td*******@netarchitects-europe.com> wrote in message
news:40**************************@posting.google.c om...
HI,

I want to be sure that users receive and can read my mails.

How can I send mail in HTML AND text Format in one send ?

thx


Jul 21 '05 #4

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

Similar topics

1
by: prasanna | last post by:
Hello I tried to send mail from PHP in html format. But an ! mark appears in mail body in Inbox. I tried to print body text on page before sending mail and it does not show ! mark. I replaced !...
4
by: Francois Keyeux | last post by:
hello everyone: i have a web site built using vbasic active server scripting running on iis (it works on either iis 50 and 60, but is designed for iis 50) i know how to create a plain text...
0
by: David Dvali | last post by:
Hello. I have a problem with sending Unicode text in mail message. So what I do: First of all I have some template file like this: ================================= <html> <head><title>Test...
3
by: tdeclercq | last post by:
HI, I want to be sure that users receive and can read my mails. How can I send mail in HTML AND text Format in one send ? thx
6
by: Anuradha | last post by:
Dear All How can i send mails using vb.net Thanx all
2
by: ChrisA | last post by:
I'm sending email from my ASP.NET 1.1 app, and it works fine providing the BodyFormat of the System.Web.Mail.MailMessage is set to Text. If I change to Html format, it breaks. Here's the code: ...
7
by: Ray Booysen | last post by:
Hi all I'm sending email via ASP.NET in HTML mode. Each email has exactly one attachment and I do have full access to the SMTP server. However, if I send the email in HTML format, the...
1
by: krishan123456 | last post by:
i have tried to send email with attached doc file but when i receive the mail i find the attached file in encoded text instead of actuall attachment.the code that i used to send an email is given...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.