send email from:

G

Greg

Can i send email everytime from same email account (set as default in from
field)
So far I have:
DoCmd.SendObject acSendNoObject, , acFormatRTF, strEmailList, , ,
strSubject, strMessage, strmess2

Thanks
 
G

Greg

How do I do that? Let's say I want to send my email always from my account
ex. [email protected] so I want this email address to show every time in From:
filed when I am sending my email

DoCmd.SendObject acSendNoObject, , acFormatRTF, strEmailList, , ,
strSubject, strMessage, strmess2


strFromEmail as string

strFromEmail = "[email protected]"

Thanks
code will open outlook but is not populating From field with my default email
 
L

Lars Brownie

Greg,

I thought that if [email protected] is your default email address and you
leave the 'From' field empty, Outlook will send from the default email
address which would mean you don't need to explicitely set it. But I'm not
completely sure.

Anyway, you can't set the 'From field' with the sendobject method.

See http://www.outlookcode.com/threads.aspx?forumid=2&messageid=5804 for a
solution and be sure to have checked the reference to Outlook in Access.

Lars
 
Top