User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MS Access and FileMaker Pro section within the Web Development category of DaniWeb, a massive community of 428,288 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,651 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS Access and FileMaker Pro advertiser: Programming Forums
Views: 1912 | Replies: 0
Reply
Join Date: Feb 2005
Posts: 20
Reputation: Stick is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
Stick Stick is offline Offline
Newbie Poster

Email created from Access is in the wrong format

  #1  
Sep 21st, 2006
Hey All,
I have created the following code in my data base. It works correctly except that the email it creates is in the rich text format. I want it to be in plain text format. The default settings in outlook are set to plain text, but my code seems to over ride the default settings.
Any help would be greatly appreciated!
Stick

' Create the Outlook session.
Set objOutlook = CreateObject("Outlook.Application")


' Create the e-mail message.
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)


With objOutlookMsg
' Add the To recipients to the e-mail message.
Set objOutlookRecip = .Recipients.Add(Forms!quote_form!CUSTEM)
objOutlookRecip.Type = olTo

' Add the Cc recipients to the e-mail message.
If (IsNull(Forms!quote_form!SALESEM)) Then
Else
Set objOutlookRecip = .Recipients.Add(Forms!quote_form!SALESEM)
objOutlookRecip.Type = olCC
End If

' Set the Subject, the Body, and the Importance of the e-mail message.
.Subject = "Mold Base Quotation"
.Body = "Thank you for the opportunity to quote your mold base needs. Please call with any quetions you may have."

.Importance = olImportanceHigh 'High importance

'Add the attachment to the e-mail message.
If Not IsMissing("c:\quotation.pdf") Then
Set objOutlookAttach = .Attachments.Add("c:\quotation.pdf")
End If


' Resolve the name of each Recipient.
For Each objOutlookRecip In .Recipients
objOutlookRecip.Resolve
If Not objOutlookRecip.Resolve Then
objOutlookMsg.Display
End If
Next
.Display
End With

Set objOutlookMsg = Nothing
Set objOutlook = Nothing
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MS Access and FileMaker Pro Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the MS Access and FileMaker Pro Forum

All times are GMT -4. The time now is 5:01 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC