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

Outlook 2003 problem for multipart/alternative e-mail (CDOSYS)

I'm using CDOSYS to send an e-mail with both text and html included in the e-mail
I'm using the following code to send the e-mail to an SMTP server.If I open the e-mail with Outlook Express 6 is working fine.If the text only option is enabled I get only the text part of the e-mail.If I open this e-mail with Outlook 2003 I get the text rendered from the html which is looking very ugly.I've tried to use another code as well, using bodyparts and I get exactly the same problem.Does somebody know anything about this
Thank

Tr
Dim msgMail As CDO.MessageClass = New CDO.MessageClas
Dim cdoConfig As CDO.ConfigurationClass = New CDO.ConfigurationClas
Dim ADOfields As ADODB.Fields = cdoConfig.Field

ADOfields("http://schemas.microsoft.com/cdo/configuration/smtpserver").Value = ConfigurationSettings.AppSettings("SMTPServer"
ADOfields("http://schemas.microsoft.com/cdo/configuration/smtpserverport").Value = 2
ADOfields("http://schemas.microsoft.com/cdo/configuration/sendusing").Value = CDO.CdoSendUsing.cdoSendUsingPor
ADOfields.Update(
msgMail.Configuration = cdoConfi
msgMail.From = strFro
msgMail.To = Trim(strTo
msgMail.Subject = strSubjec
msgMail.AutoGenerateTextBody = Fals
msgMail.TextBody = "This newsletter has been formatted to be displayed in an HTML e-mail client." &
"If you are seeing this message your e-mail client does not support HTML." &
"To see the newsletter follow this link: " & myNewsletterLin
msgMail.HTMLBody = strBod
cdoConfig = Nothin
msgMail.Send(
Catch ex As Exceptio
LogError(ex.Message
End Try

Nov 20 '05 #1
0 1407

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

Similar topics

5
by: lucanos | last post by:
Hey All, I'm having trouble trying to create a PHP file which will generate a multipart email message (containing both an HTML formatted part and a Plain Text formatted part). I have Googled...
0
by: Bruce Potter | last post by:
Hi, I am trying to send an email with "Content-Type: multipart/alternative;" and mime boundries. I have been able to accomplish this with PHP but I have been unsuccessful with .NET. Is there a...
4
by: Max | last post by:
Hi, I would like to have a button and a combo box with options to select various versions of Microsoft Outlook: 2002, 2003. The user selects the email client and clicks the button. The only...
6
by: enak | last post by:
I need some help. I have a group of attorneys that need to be able to see the schedule of court dates. These dates are scheduled by the legal assistants. This is what I need: when a legal...
6
by: Ernie | last post by:
We have an Outlook 2000 VBA application - 8 user forms, and about a thousand lines of code - that we wish to distribute. We know that we can password-protect the code, but that does not give us the...
9
by: George McCullen | last post by:
I have an Outlook 2003 using Exchange Server 2003 Public Contacts Folder containing 20,000 Contacts. I am writing a VB .Net 2003 program that loops through all the contacts in a "for each oCt in...
3
by: Chris Thunell | last post by:
I am looping through a Public Folder in our Exchange 2003 server system and i keep getting invalid cast exceptions although the Message Class is set correctly for each item. It works until i get...
11
by: Maximus | last post by:
Hi all, Has anyone been able to reterive the gradient selection colors used in outlook 2003? Basically, I have a grid showing a list of records and my client wants the selected row to have the...
5
by: John A. Bailo | last post by:
I have a program that I'm converting from Outlook 2000 to Outlook 2003. It basically opens Outlook and iterates through a series of items in a public folder. I was able to run this as a...
0
by: ptraj | last post by:
Dear ppls, I'm doing a small project to extract all messages from outlook by Visual Basic 6.0 and write them into a file(in MBOX format). While accessing messages i able to get headers, body,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.