dbTalk Databases Forums  

MailItem Object

comp.databases.ms-access comp.databases.ms-access


Discuss MailItem Object in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
musicloverlch
 
Posts: n/a

Default MailItem Object - 01-25-2012 , 09:17 AM






Hi All,

When I'm in Outlook, I can change the "From" field to about 6 other
email addresses. When I send an email through VBA I need to be able to
do the same sort of thing. How change I change who the email is coming
from? Like I need to set it to come from RedTeam (AT) mail (DOT) com instead of
me (AT) mail (DOT) com. I have the appropriate permissions to do that in Outlook.
I can't in Access.

Please help. The powers in charge are demanding I scrap and start over
if I can't change this one setting.

Thanks in advance,
Laura

Reply With Quote
  #2  
Old   
musicloverlch
 
Posts: n/a

Default Re: MailItem Object - 01-25-2012 , 09:20 AM






Never mind. I just tried to use the "SentOnBehalfOfName" property and
it change it to the team email address. It just changed it. It didn't
even say "RedTeam on behalf of Laura"

Yay!



On Jan 25, 9:17*am, musicloverlch <lho... (AT) gmail (DOT) com> wrote:
Quote:
Hi All,

When I'm in Outlook, I can change the "From" field to about 6 other
email addresses. When I send an email through VBA I need to be able to
do the same sort of thing. How change I change who the email is coming
from? Like I need to set it to come from RedT... (AT) mail (DOT) com instead of
m... (AT) mail (DOT) com. I have the appropriate permissions to do that in Outlook.
I can't in Access.

Please help. The powers in charge are demanding I scrap and start over
if I can't change this one setting.

Thanks in advance,
Laura

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.