A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

email automation with vba in access2003, need to automate "From"



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 26th 06, 08:00 PM posted to microsoft.public.outlook.program_vba
Pampers
external usenet poster
 
Posts: 2
Default email automation with vba in access2003, need to automate "From"

Hi everyone,
I want to sent an email with an attachment by using docmd.sendobject. All is
fine, but I also must include the "from"-field. How can this be done. I don't
see this option in the SendObject method. Is there a way around this problem.
Peter
Ads
  #2  
Old May 26th 06, 08:04 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default email automation with vba in access2003, need to automate "From"

There is no such option. SendObject will always use the current user's default account. Whether you can get control over the send account if you use Outlook objects instead of SendObject depends on your version of Outlook and other factors. See
http://www.outlookcode.com/codedetail.aspx?id=889 for various approaches that might fit your scenario.


--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Pampers" wrote in message ...
Hi everyone,
I want to sent an email with an attachment by using docmd.sendobject. All is
fine, but I also must include the "from"-field. How can this be done. I don't
see this option in the SendObject method. Is there a way around this problem.
Peter

  #3  
Old May 27th 06, 03:15 AM posted to microsoft.public.outlook.program_vba
Pampers
external usenet poster
 
Posts: 2
Default email automation with vba in access2003, need to automate "Fro

Tnx a lot Sue,
I will have a go at the various options. See if I can get it to work. Keep
you posted.
Pampers

"Sue Mosher [MVP-Outlook]" wrote:

There is no such option. SendObject will always use the current user's default account. Whether you can get control over the send account if you use Outlook objects instead of SendObject depends on your version of Outlook and other factors. See
http://www.outlookcode.com/codedetail.aspx?id=889 for various approaches that might fit your scenario.


--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Pampers" wrote in message ...
Hi everyone,
I want to sent an email with an attachment by using docmd.sendobject. All is
fine, but I also must include the "from"-field. How can this be done. I don't
see this option in the SendObject method. Is there a way around this problem.
Peter


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook "freezes" on "reply" when I set Word as my HTML editor? louis11 Outlook - Installation 0 May 12th 06 05:40 PM
VBA Scripts Do Not Show Up As "Custom Actions" [email protected] Outlook and VBA 4 April 26th 06 10:29 PM
How to set up email from "X" to "Y" to go to a designated folder? Gordon Outlook - General Queries 2 April 7th 06 09:56 AM
Outlook express address book, "tools", "option" feature missing f. Brad Outlook - Using Contacts 3 March 12th 06 12:46 AM
Only when i forward emails with attachements "550 relaying mail to" [domain] "is not allowed" Alchemy Outlook - General Queries 4 March 9th 06 12:47 AM


All times are GMT +1. The time now is 08:15 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.