473,385 Members | 1,342 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,385 software developers and data experts.

HTML Email

Hi guys
I'm sending email using CDO Message in HTML Formatted.
There is no problem if client side is HTML Enable. But if
it doesnt not, its showing all html tags in message body.
How can I solve this?
Thanx

code snippet

body = <html>
body = body & "<b>Hello</b>"
body = body & "</html>"
Jul 19 '05 #1
8 2489
Some people would say that you should just send plain text e-mail, since you
cannot control the environment in which your message will be read. I don't
necessarily fully disagree with this. The other option is to send a
multipart message that contains both an HTML version and a plain text
version of your message.

<quote source="http://www.aspfaq.com/show.asp?id=2474">

If you have a registered copy of ASPEmail 4.5 (http://www.aspemail.com/),
you can provide multipart content, so that non-HTML-aware readers can have
an alternate version:
<%
Set RegASPEMailer = Server.CreateObject("Persits.MailSender")
With RegASPEmailer
.Host = SMTPServer
.IsHTML = True
.FromName = FromName
.From = FromAddress
.AddAddress ToAddress, ToName
.Subject = Subject
.Body = htmlbody
.AltBody = textbody
.Send
End With
Set RegASPEMailer = Nothing
%>
</quote>

Multipart with CDO:
http://msdn.microsoft.com/library/de...a/delivery.asp

Ray at home

"dave" <an*******@discussions.microsoft.com> wrote in message
news:49****************************@phx.gbl...
Hi guys
I'm sending email using CDO Message in HTML Formatted.
There is no problem if client side is HTML Enable. But if
it doesnt not, its showing all html tags in message body.
How can I solve this?
Thanx

code snippet

body = <html>
body = body & "<b>Hello</b>"
body = body & "</html>"

Jul 19 '05 #2
Thanx
-----Original Message-----
Some people would say that you should just send plain text e-mail, since youcannot control the environment in which your message will be read. I don'tnecessarily fully disagree with this. The other option is to send amultipart message that contains both an HTML version and a plain textversion of your message.

<quote source="http://www.aspfaq.com/show.asp?id=2474">

If you have a registered copy of ASPEmail 4.5 (http://www.aspemail.com/),you can provide multipart content, so that non-HTML- aware readers can havean alternate version:
<%
Set RegASPEMailer = Server.CreateObject ("Persits.MailSender") With RegASPEmailer
.Host = SMTPServer
.IsHTML = True
.FromName = FromName
.From = FromAddress
.AddAddress ToAddress, ToName
.Subject = Subject
.Body = htmlbody
.AltBody = textbody
.Send
End With
Set RegASPEMailer = Nothing
%>
</quote>

Multipart with CDO:
http://msdn.microsoft.com/library/default.asp? url=/library/en-us/rma/delivery.asp
Ray at home

"dave" <an*******@discussions.microsoft.com> wrote in messagenews:49****************************@phx.gbl...
Hi guys
I'm sending email using CDO Message in HTML Formatted.
There is no problem if client side is HTML Enable. But if it doesnt not, its showing all html tags in message body. How can I solve this?
Thanx

code snippet

body = <html>
body = body & "<b>Hello</b>"
body = body & "</html>"

.

Jul 19 '05 #3
Or you could always do something where you ask the user their preferred
email format.

dave wrote:
Thanx

-----Original Message-----
Some people would say that you should just send plain


text e-mail, since you
cannot control the environment in which your message


will be read. I don't
necessarily fully disagree with this. The other option


is to send a
multipart message that contains both an HTML version and


a plain text
version of your message.

<quote source="http://www.aspfaq.com/show.asp?id=2474">

If you have a registered copy of ASPEmail 4.5


(http://www.aspemail.com/),
you can provide multipart content, so that non-HTML-


aware readers can have
an alternate version:
<%
Set RegASPEMailer = Server.CreateObject


("Persits.MailSender")
With RegASPEmailer
.Host = SMTPServer
.IsHTML = True
.FromName = FromName
.From = FromAddress
.AddAddress ToAddress, ToName
.Subject = Subject
.Body = htmlbody
.AltBody = textbody
.Send
End With
Set RegASPEMailer = Nothing
%>
</quote>

Multipart with CDO:
http://msdn.microsoft.com/library/default.asp?


url=/library/en-us/rma/delivery.asp
Ray at home

"dave" <an*******@discussions.microsoft.com> wrote in


message
news:49****************************@phx.gbl...
Hi guys
I'm sending email using CDO Message in HTML Formatted.
There is no problem if client side is HTML Enable. But
if
it doesnt not, its showing all html tags in message
body.
How can I solve this?
Thanx

code snippet

body = <html>
body = body & "<b>Hello</b>"
body = body & "</html>"

.


Jul 19 '05 #4
> I don't necessarily fully disagree with this.

This is going on my wall of quotes, not because it's funny, but because it
makes me dizzy. :=|
Jul 19 '05 #5
It is an election year, after all.

Can you spell WAFFLE?

Bob Lehmann

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:Oa**************@TK2MSFTNGP09.phx.gbl...
I don't necessarily fully disagree with this.


This is going on my wall of quotes, not because it's funny, but because it
makes me dizzy. :=|

Jul 19 '05 #6
try OstroSoft SMTP Component
http://www.ostrosoft.com/smtp_component.asp

Set oSMTP = Server.CreateObject("OSSMTP.SMTPSession")
With oSMTP
.Server = sServer
.MailFrom = sMailFrom
.SendTo = sSendTo
.MessageSubject = sMessageSubject
.MessageText = sMessageText
.MessageHTML = sMessageHTML
.SendEmail
End With

they have more samples on-line

hs234
On Mon, 26 Jul 2004 17:29:17 -0700, "dave"
<an*******@discussions.microsoft.com> wrote:
Hi guys
I'm sending email using CDO Message in HTML Formatted.
There is no problem if client side is HTML Enable. But if
it doesnt not, its showing all html tags in message body.
How can I solve this?
Thanx

code snippet

body = <html>
body = body & "<b>Hello</b>"
body = body & "</html>"


Jul 19 '05 #7
My wall is not a little bit more unpopulated!

Ray at work

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:Oa**************@TK2MSFTNGP09.phx.gbl...
I don't necessarily fully disagree with this.


This is going on my wall of quotes, not because it's funny, but because it
makes me dizzy. :=|

Jul 19 '05 #8
On Tue, 27 Jul 2004 09:33:25 -0400, "Ray at <%=sLocation%> [MVP]"
<myfirstname at lane34 dot com> wrote:
in <u2*************@tk2msftngp13.phx.gbl>
My wall is not a little bit more unpopulated!
Is anyone else hearing strains of the Twilight Zone theme?

Ray at work

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:Oa**************@TK2MSFTNGP09.phx.gbl...
I don't necessarily fully disagree with this.


This is going on my wall of quotes, not because it's funny, but because it
makes me dizzy. :=|


---
Stefan Berglund
Jul 19 '05 #9

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

Similar topics

3
by: D. Alvarado | last post by:
Hello, I have signed up a for a Google Gmail account. I sent myself some PHP-generated HTML emails from two different machines using this code: $to = "dave@gmail.com"; $id = 1234; $from =...
1
by: Benny Ng | last post by:
Hi, I have created a program that can send and receive email.I would like to know how can i give my program the ability to view html emails? It currently shows html email in html codes.Please...
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...
17
by: Lloyd Sheen | last post by:
This IDE is driving me nuts. I needed another button so I copied an existing one, changed the Text and the id and position by drag and drop. Well then I run and get the following: Control...
4
by: clintonG | last post by:
Technically speaking, this issue is not about modifying the HTML generated by server controls but preceding the HTML generated by server controls with an HTML control generated on the basis of the...
6
by: Paolo Pignatelli | last post by:
I have an aspx code behind page that goes something like this in the HTML view: <asp:HyperLink id=HyperLink1 runat="server" NavigateUrl='<%#"mailto:" &amp;...
21
by: maya | last post by:
hi, I'm designing an HTML email for a client.. I know general guidelines (no CSS, no JavaScript... although I do use limited CSS, inside tags (as in <span style=".."we do this at work and it...
15
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to...
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
2
by: anu b | last post by:
Now i am sending email to my friend using session variable... but my code is as below private bool SendEmail(string email) { try
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...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.