Visual Basic Code to Send Outlook eMail

Thursday, July 26, 2001

Yeah. So. Gotta little bug here. Can anyone tell me how to force Outlook to send a message formatted as plain text instead of in the user’s default format in VB? The only information I can find is about the OlEditorType, but that is apparently read-only unless I force the mail object to have HTMLBody true. It’s not an emergency, or even important. It’s just really annoying me.

Dim myOLApp As outlook.Application, myItem As outlook.MailItem
Set myOLApp = CreateObject(”Outlook.Application”)
Set myItem = myOLApp.CreateItem(olMailItem)

{ 2 comments… read them below or add one }

1 Chris 02.08.02 at 11:32 am

Trying to figure this out myself. Haven’t found anything. Let me know if you have any luck.
Chris

2 Greg Thomas 03.27.02 at 2:03 am

The short answer - you can’t.
The long answer - use CDO or MAPI. See http://support.microsoft.com/default.aspx?scid=kb;en-us;Q222248 for the full info.

HTH,

Greg

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>