Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
developer
active.documents
automation
binary.file_format
clipboard.dde
com.add_ins
hosting.controls
internet_other
office.sdks
officedev
officedev.other
outlook.forms
outlook.vba
smarttags
vba
web.components
  
 
date: Fri, 25 Apr 2008 07:54:01 -0700,    group: microsoft.public.office.developer.outlook.vba        back       


Changing the Outlook "from" address using VBA   
I am developing an application in access 2007. The app needs to send emails 
to customers but the account from which the email is sent is dependent on the 
customer. At the moment I am using "DoCmd.SendObject" but I don't know how to 
change the "from" address. If someone could point me in the right direction 
or give me a code sample of how to manipulate the "from" address I'd be 
really grateful.
Thanks,
lookatmypie
date: Fri, 25 Apr 2008 07:54:01 -0700   author:   lookatmypie

Re: Changing the Outlook "from" address using VBA   
There's a SentOfBehalfOfName property, but I don't think you would be
able to access it outside of Outlook, so you would probably need to
instantiate the Outlook object model. Also, the end user would need to
be set up to use that feature.

There were some recent threads here and in the Excel ng about how to
change the From account so it appears the email is coming from a
completely different address, here's what I could find:

http://tinyurl.com/3rd8tw
http://tinyurl.com/4t686r


HTH,
JP


On Apr 25, 10:54 am, lookatmypie
 wrote:
> I am developing an application in access 2007. The app needs to send emails
> to customers but the account from which the email is sent is dependent on the
> customer. At the moment I am using "DoCmd.SendObject" but I don't know how to
> change the "from" address. If someone could point me in the right direction
> or give me a code sample of how to manipulate the "from" address I'd be
> really grateful.
> Thanks,
> lookatmypie
date: Sat, 26 Apr 2008 22:52:21 -0700 (PDT)   author:   JP

Re: Changing the Outlook "from" address using VBA   
In earlier versions it is more awkward but in 2007 you can use the 
SendUsingAccount property of the MailItem.

-- 
Enjoy,
Tony

"lookatmypie"  wrote in message 
news:13C26A28-BE68-43D8-A721-F0037F0863C0@microsoft.com...
>I am developing an application in access 2007. The app needs to send emails
> to customers but the account from which the email is sent is dependent on 
> the
> customer. At the moment I am using "DoCmd.SendObject" but I don't know how 
> to
> change the "from" address. If someone could point me in the right 
> direction
> or give me a code sample of how to manipulate the "from" address I'd be
> really grateful.
> Thanks,
> lookatmypie
date: Sun, 27 Apr 2008 20:55:04 +0100   author:   Tony Jollans My forename at my surname dot com

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us