PC Review


Reply
Thread Tools Rate Thread

Can I set a specific account for sending a message ?

 
 
Daryll
Guest
Posts: n/a
 
      11th Dec 2009
In my outlook 2003 set up I have three internet e-mail accounts, used for
different purposes. I have three different macros which I use to forward
emails to different addresses, but I want each macro to use a specific
e-mail account.

Is it possible when using automation to send messages in visual basic to
programmatically set a specific account as the account to be used when
sending the message. I know that TO, SUBJECT, CC, ADDRESS, and so on can be
set, but I haven't been able to find any visual basic code to cover setting
a specific account.




 
Reply With Quote
 
 
 
 
Sue Mosher [MVP]
Guest
Posts: n/a
 
      11th Dec 2009
Outlook 2007 adds a MailItem.SendUsingAccount property.

For earlier versions, Outlook provides no direct way to change the account
for an outgoing message. These are known workarounds using native Outlook
functionality:

1) If the user has Outlook 2003 and is not using WordMail as the editor, you
set the sending account using CommandBars techniques. See
http://www.outlookcode.com/codedetail.aspx?id=889 for sample code.

2) If you're mainly concerned about replies to your message going to the
correct place, add the desired reply address to the MailItem.ReplyRecipients
collection.

The third-party Redemption ( http://www.dimastr.com/redemption/ ) library
adds two other solutions:

3) Set an RFC822 header property, as described at
http://www.dimastr.com/redemption/faq.htm#14

4) Set the RDOMail.Account property, as described at
http://www.dimastr.com/redemption/rdo/RDOMail.htm
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Daryll" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> In my outlook 2003 set up I have three internet e-mail accounts, used for
> different purposes. I have three different macros which I use to forward
> emails to different addresses, but I want each macro to use a specific
> e-mail account.
>
> Is it possible when using automation to send messages in visual basic to
> programmatically set a specific account as the account to be used when
> sending the message. I know that TO, SUBJECT, CC, ADDRESS, and so on can
> be set, but I haven't been able to find any visual basic code to cover
> setting a specific account.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending Marketing Campaign from a specific Account/ emailadress Abigael Microsoft Outlook BCM 1 16th Feb 2010 07:08 PM
sending from specific account =?Utf-8?B?S3Jpc3RpbjA3Mjc=?= Microsoft Outlook Discussion 1 3rd Jun 2007 02:38 AM
Sending an email from specific account through Access =?Utf-8?B?TU0gU3Bpcml0IEd1aWRl?= Microsoft Outlook VBA Programming 1 20th Jun 2005 06:31 PM
how to fix protocol errors in sending email from specific account. =?Utf-8?B?QWxwZXJlejQ=?= Microsoft Outlook Discussion 1 20th Jan 2005 12:21 AM
sending through a specific account. Sharad Naik Microsoft Outlook VBA Programming 4 31st Oct 2004 09:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:02 AM.