PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Automatic Account selection in replies/forwards

Reply

Automatic Account selection in replies/forwards

 
Thread Tools Rate Thread
Old 28-04-2004, 07:05 PM   #1
Michael Gordon
Guest
 
Posts: n/a
Default Automatic Account selection in replies/forwards


I am writing to ask if anyone can help me with the
following.
When Outlook2003 clients select reply/reply all/forward
to a mail item, I would like to automatically specify the
account to use (Microsoft Exchange Server), which might
be different than the one picked by Outlook for a
particular mail item.

This is needed due to the configuration we have.
We use Exchange 2003 for internal mail and also for
sending external mail with SMTP.
However, we use an ISP for actually hosting external mail.
The Outlook clients are configured to use POP3 for
receiving external mail from the ISP. Unfortunately,
Outlook 2003 will use the account (transport) that the
mail item was received via as the account for
replying/forwarding, even if the Microsoft Exchange
Server is the primary (default) account.

Thanks.
  Reply With Quote
Old 29-04-2004, 03:01 PM   #2
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: Automatic Account selection in replies/forwards

If all the accounts are configured in that Outlook profile then you can
access the account as a sending account by getting the menu/toolbar you
would use to select an alternate sending account in the UI as a command bar
button object and calling its Execute method in the code the handles replies
and forwards.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Michael Gordon" <gordonm-remove-@emfcontrols.com> wrote in message
news:5a6901c42d4b$6d3ae570$a001280a@phx.gbl...
> I am writing to ask if anyone can help me with the
> following.
> When Outlook2003 clients select reply/reply all/forward
> to a mail item, I would like to automatically specify the
> account to use (Microsoft Exchange Server), which might
> be different than the one picked by Outlook for a
> particular mail item.
>
> This is needed due to the configuration we have.
> We use Exchange 2003 for internal mail and also for
> sending external mail with SMTP.
> However, we use an ISP for actually hosting external mail.
> The Outlook clients are configured to use POP3 for
> receiving external mail from the ISP. Unfortunately,
> Outlook 2003 will use the account (transport) that the
> mail item was received via as the account for
> replying/forwarding, even if the Microsoft Exchange
> Server is the primary (default) account.
>
> Thanks.



  Reply With Quote
Old 29-04-2004, 06:54 PM   #3
Michael Gordon
Guest
 
Posts: n/a
Default Re: Automatic Account selection in replies/forwards

I'm new to this; would you mind providing some more
detail on this. Thanks.
>-----Original Message-----
>If all the accounts are configured in that Outlook

profile then you can
>access the account as a sending account by getting the

menu/toolbar you
>would use to select an alternate sending account in the

UI as a command bar
>button object and calling its Execute method in the code

the handles replies
>and forwards.
>
>--
>Ken Slovak
>[MVP - Outlook]
>http://www.slovaktech.com
>Author: Absolute Beginner's Guide to Microsoft Office

Outlook 2003
>Reminder Manager, Extended Reminders, Attachment Options
>http://www.slovaktech.com/products.htm
>
>
>"Michael Gordon" <gordonm-remove-@emfcontrols.com> wrote

in message
>news:5a6901c42d4b$6d3ae570$a001280a@phx.gbl...
>> I am writing to ask if anyone can help me with the
>> following.
>> When Outlook2003 clients select reply/reply all/forward
>> to a mail item, I would like to automatically specify

the
>> account to use (Microsoft Exchange Server), which might
>> be different than the one picked by Outlook for a
>> particular mail item.
>>
>> This is needed due to the configuration we have.
>> We use Exchange 2003 for internal mail and also for
>> sending external mail with SMTP.
>> However, we use an ISP for actually hosting external

mail.
>> The Outlook clients are configured to use POP3 for
>> receiving external mail from the ISP. Unfortunately,
>> Outlook 2003 will use the account (transport) that the
>> mail item was received via as the account for
>> replying/forwarding, even if the Microsoft Exchange
>> Server is the primary (default) account.
>>
>> Thanks.

>
>
>.
>

  Reply With Quote
Old 30-04-2004, 08:18 PM   #4
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: Automatic Account selection in replies/forwards

Sure. For an example of how to get and use a commandbar button in code see
the second and third VBA examples at
http://www.slovaktech.com/code_samples.htm#SendReceive

Getting and using any other button is very similar.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Michael Gordon" <gordonm-remove-@emfcontrols.com> wrote in message
news:60e001c42e13$07f92000$a601280a@phx.gbl...
> I'm new to this; would you mind providing some more
> detail on this. Thanks.



  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

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