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

CDO - HTML formatted

Hello friends,
Don't know if i am posting to the right group, but if anyone has an idea
about this please let me know.

I just wanted to ask that is it true that it is not possible to send HTML
Formatted emails from ASP through CDO. (CDOSYS).
I mean I am able to send the email which is HTML formatted through CDONTS
that sends email through Virtual SMTP server and i get a proper looking
email.
But when i tried same in CDO then all i got in email was not the email but
the code of the email.
So do i have to specify some extra parameter in it like in CDONTS while
sending HTML formatted email i am setting the format as below

ObjMail.BodyFormat = 0
ObjMail.MailFormat = 0

or the facility is only not available. The reason i am being very curious is
because CDO 1.2 has lots of more features then CDONTS and so i can't believe
that after have being a superset its could just be lagging in this aspect.

Thanks
Jul 19 '05 #1
3 4701

"Niel" <na*******@vippowernet.com> wrote in message
news:uE**************@TK2MSFTNGP11.phx.gbl...
Hello friends,
Don't know if i am posting to the right group, but if anyone has an idea
about this please let me know.

I just wanted to ask that is it true that it is not possible to send HTML
Formatted emails from ASP through CDO. (CDOSYS).
Untrue.
sBody = "<html><head><title>An E-mail from
Niel</title></head><body><strong>HEY!</strong></body></html>"
ObjMail.HtmlBody = sBody
Ray at work
I mean I am able to send the email which is HTML formatted through CDONTS
that sends email through Virtual SMTP server and i get a proper looking
email.
But when i tried same in CDO then all i got in email was not the email but
the code of the email.
So do i have to specify some extra parameter in it like in CDONTS while
sending HTML formatted email i am setting the format as below

ObjMail.BodyFormat = 0
ObjMail.MailFormat = 0

or the facility is only not available. The reason i am being very curious is because CDO 1.2 has lots of more features then CDONTS and so i can't believe that after have being a superset its could just be lagging in this aspect.

Thanks

Jul 19 '05 #2
> I just wanted to ask that is it true that it is not possible to send HTML
Formatted emails from ASP through CDO. (CDOSYS).


FALSE.

http://www.aspfaq.com/2474

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
Jul 19 '05 #3
Thanks for the reply.
May be i was doing something wrong or may be have missed a quote due to
which i was getting the raw format /code in email.
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:#I**************@TK2MSFTNGP09.phx.gbl...
I just wanted to ask that is it true that it is not possible to send HTML Formatted emails from ASP through CDO. (CDOSYS).


FALSE.

http://www.aspfaq.com/2474

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/

Jul 19 '05 #4

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

Similar topics

5
by: Paul Lamonby | last post by:
Hi, I am generating a HTML formatted email in PHP, but I am getting the most bizarre error, it will randomly delete characters out of the HTML code while in transit to the address, therefore...
8
by: ALESSANDRO Baraldi | last post by:
Hi and good evening. I need to show with Lebans RichTextBox a Mime decoded Message. I build an Mail Receiver, with MIME conversion. To show Html Message i think that it's need to rtf...
2
by: Paul Turley | last post by:
Does anyone have some sample code for sending an HTML formatted message using CDONTS? Thanks RE: Sending HTML formatted mail using CDONTS -- Paul Turley, MCSD, MCAD, MCT, MSF...
5
by: Steve Franks | last post by:
Is there any way to tell VS to automatically reformat my HTML view to add lines and tabs/spacing to create nicely formatted HTML in the viewer? I am using Visual Studio 2005 .NET Beta 2 For...
3
by: Craig Petrie | last post by:
Hi, I have a large table in Word 2003 that has formatted text in the cells and wish to read and convert a cells formatted contents to html output via vb.net code. The formatting contains the...
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...
1
by: robbiesmith79 | last post by:
Just so this is out there on the web, I battled the past 24 hours about this. Background info... I developed a ecommerce website in PHP 4 on a shared linux hosting plan from GoDaddy and had the...
4
by: cybervigilante | last post by:
I sent HTML formatted email, using PHP, to my Yahoo address from my server, and it came out fine, styles and all. I sent it to my gmail address to test it and all I see is the raw html code. But I...
2
by: Artie | last post by:
Hi, I've searched the web but can't find a solution to an apparently really simple problem. My app contains an HTML string and I need to be able to invoke the Print Dialog to print the HTML...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: 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...

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.