tweak required..... (email/A2003 to Outlook)

GaryPanic

Smoke me a Kipper,Skipper
Local time
Today, 15:00
Joined
Nov 8, 2005
Messages
3,302
guys - i am using the code below and it kinda works -up to the message bit ..

what have i done wrong - ????



Dim EmailApp, NameSpace, EmailSend As Object

Set EmailApp = CreateObject("Outlook.Application")
Set NameSpace = EmailApp.GetNamespace("MAPI")
Set EmailSend = EmailApp.CreateItem(0)


EmailSend.To = [Forms]![quotefrm]!
EmailSend.Subject = " Our Reference" & " " & [Forms]![quotefrm]![QuoteNo] & " " & [Forms]![quotefrm]![Insured]



EmailSend.Message = "zipxc"

'EmailSend.Attachments.Add "C:\temp\cancellation.xls"
EmailSend.Display

Set EmailApp = Nothing
Set NameSpace = Nothing
Set EmailSend = Nothing
 
I believe you want .Body, not .Message.
 
Message is not a valid property of an Outlook MailItem. Use the Body property instead
 
Fab-- resolved another beer I owe you Paul

and thanks CS- Paul beat you to it ..
 
Excellent!! I need a beer about now. :p
 
- now looking at this - its raw text into my email - is there any way I can apply some simple formatting ? or have i gone down the wrong route for formating in this way .. (Bold and italic is probaby all i will need )
 
Using .HTMLBody will let you include HTML tags.
 
Using .HTMLBody will let you include HTML tags.

ok - i need to read up on this (new area to me ) but i have the gist(?) of what i wanted done - so a bit of formating is just to pretty it up
 

Users who are viewing this thread

Back
Top Bottom