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. (e-mail address removed) 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 = "(e-mail address removed)"

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

Lars Brownie

Greg,

I thought that if (e-mail address removed) 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top