PC Review


Reply
Thread Tools Rate Thread

BCC on one of several email accounts

 
 
Randy
Guest
Posts: n/a
 
      28th Sep 2005
I'm trying to set up a VB routine that will automatically do a bcc on all
outgoing emails when sending from one particular email account. I have 4
email accounts that I use in Outlook 2003 and when I send an email from the
'sales' account, I want all emails bcc'd to another email account.

I've set up a routine that will bcc all emails (from all accounts) using
ItemSend, but I can't figure out how to make this happen for just a single
account. Any thoughts? Thanks.


 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      28th Sep 2005
Outlook doesn't provide any direct way to detect the account for an outgoing message. See
http://www.outlookcode.com/codedetail.aspx?id=889 for various workarounds 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


"Randy" <(E-Mail Removed)> wrote in message news:BOidnRksjOvoT6feRVn-(E-Mail Removed)...
> I'm trying to set up a VB routine that will automatically do a bcc on all
> outgoing emails when sending from one particular email account. I have 4
> email accounts that I use in Outlook 2003 and when I send an email from the
> 'sales' account, I want all emails bcc'd to another email account.
>
> I've set up a routine that will bcc all emails (from all accounts) using
> ItemSend, but I can't figure out how to make this happen for just a single
> account. Any thoughts? Thanks.
>
>

 
Reply With Quote
 
Randy
Guest
Posts: n/a
 
      29th Sep 2005
Thanks for the response Sue! Perhaps a more simple way to do what I need is
if I can get access to the 'From' address in the outgoing mail...is that
field accessible? I'd like to stay within the ItemSend application
subroutine....

It's been a while since I've done programming....is the whole email record
sent into ItemSend before the email is actually sent? Or, does ItemSend
just pass variable back to the mail item? If the email record is sent to
the ItemSend routine, does a list exist somewhere of the variables contained
within the Object record?


"Sue Mosher [MVP-Outlook]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
Outlook doesn't provide any direct way to detect the account for an outgoing
message. See
http://www.outlookcode.com/codedetail.aspx?id=889 for various workarounds
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


"Randy" <(E-Mail Removed)> wrote in message
news:BOidnRksjOvoT6feRVn-(E-Mail Removed)...
> I'm trying to set up a VB routine that will automatically do a bcc on all
> outgoing emails when sending from one particular email account. I have 4
> email accounts that I use in Outlook 2003 and when I send an email from
> the
> 'sales' account, I want all emails bcc'd to another email account.
>
> I've set up a routine that will bcc all emails (from all accounts) using
> ItemSend, but I can't figure out how to make this happen for just a single
> account. Any thoughts? Thanks.
>
>



 
Reply With Quote
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      29th Sep 2005
Unless the user has manually set a From address for a specific message, Outlook doesn't provide that information until *after* the item has been sent and is in the Sent Items folder.

The Item object passed as a parameter in the ItemSend event handler is the actual item that is in the process of being sent. The object browser (press F2 in VBA) can show you the MailItem properties.

--
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


"Randy" <(E-Mail Removed)> wrote in message news:Ue-dncVWKdLYFKbeRVn-(E-Mail Removed)...
> Thanks for the response Sue! Perhaps a more simple way to do what I need is
> if I can get access to the 'From' address in the outgoing mail...is that
> field accessible? I'd like to stay within the ItemSend application
> subroutine....
>
> It's been a while since I've done programming....is the whole email record
> sent into ItemSend before the email is actually sent? Or, does ItemSend
> just pass variable back to the mail item? If the email record is sent to
> the ItemSend routine, does a list exist somewhere of the variables contained
> within the Object record?
>
>
> "Sue Mosher [MVP-Outlook]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> Outlook doesn't provide any direct way to detect the account for an outgoing
> message. See
> http://www.outlookcode.com/codedetail.aspx?id=889 for various workarounds
> 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
>
>
> "Randy" <(E-Mail Removed)> wrote in message
> news:BOidnRksjOvoT6feRVn-(E-Mail Removed)...
>> I'm trying to set up a VB routine that will automatically do a bcc on all
>> outgoing emails when sending from one particular email account. I have 4
>> email accounts that I use in Outlook 2003 and when I send an email from
>> the
>> 'sales' account, I want all emails bcc'd to another email account.
>>
>> I've set up a routine that will bcc all emails (from all accounts) using
>> ItemSend, but I can't figure out how to make this happen for just a single
>> account. Any thoughts? Thanks.
>>
>>

>
>

 
Reply With Quote
 
Randy
Guest
Posts: n/a
 
      29th Sep 2005
Isn't THAT just frustrating!!! hmmmmmm.....now what to do?! I see people
selling outlook add-in software that will do a Bcc for all emails, but I'm
sure they do it for all accounts too.

Once again, I appreciate your response. 'F2' was the magic list that I was
looking for.

I put the ItemSend object in the watch list and saw that the
'SenderEmailAddress' field is "" (blank). The only solution I can think of
is to write a macro that gets the mail from the Sent folder, extracts the
account info, then creates a new message and sends it. But, this seems real
messy.

When replying to a received email, can you tell me if there is a way to
extract the 'To' address from the received email during the ItemSend event?
If so, at least I can do a Bcc on email replys, but not on new emails
generated from that account. I looked through the object, but I can't seem
to find this info....I'm SURE it is there though!

-randy


"Sue Mosher [MVP-Outlook]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
Unless the user has manually set a From address for a specific message,
Outlook doesn't provide that information until *after* the item has been
sent and is in the Sent Items folder.

The Item object passed as a parameter in the ItemSend event handler is the
actual item that is in the process of being sent. The object browser (press
F2 in VBA) can show you the MailItem properties.

--
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


"Randy" <(E-Mail Removed)> wrote in message
news:Ue-dncVWKdLYFKbeRVn-(E-Mail Removed)...
> Thanks for the response Sue! Perhaps a more simple way to do what I need
> is
> if I can get access to the 'From' address in the outgoing mail...is that
> field accessible? I'd like to stay within the ItemSend application
> subroutine....
>
> It's been a while since I've done programming....is the whole email record
> sent into ItemSend before the email is actually sent? Or, does ItemSend
> just pass variable back to the mail item? If the email record is sent to
> the ItemSend routine, does a list exist somewhere of the variables
> contained
> within the Object record?
>
>
> "Sue Mosher [MVP-Outlook]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> Outlook doesn't provide any direct way to detect the account for an
> outgoing
> message. See
> http://www.outlookcode.com/codedetail.aspx?id=889 for various workarounds
> 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
>
>
> "Randy" <(E-Mail Removed)> wrote in message
> news:BOidnRksjOvoT6feRVn-(E-Mail Removed)...
>> I'm trying to set up a VB routine that will automatically do a bcc on all
>> outgoing emails when sending from one particular email account. I have 4
>> email accounts that I use in Outlook 2003 and when I send an email from
>> the
>> 'sales' account, I want all emails bcc'd to another email account.
>>
>> I've set up a routine that will bcc all emails (from all accounts) using
>> ItemSend, but I can't figure out how to make this happen for just a
>> single
>> account. Any thoughts? Thanks.
>>
>>

>
>



 
Reply With Quote
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      30th Sep 2005
The To information might be in any of these places:

1) The body of the reply item being sent, if you didn't delete the reply header.

2) Any message open in the Inspectors collection.

3) Application.ActiveExplorer.Selection(1) if you are replying to an item selected in a folder and haven't changed the selection since you started the reply.

4) None of the above.

What about writing a macro to (a) create the reply and (b) add the Bcc at the time of creation?

--
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


"Randy" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
>
> When replying to a received email, can you tell me if there is a way to
> extract the 'To' address from the received email during the ItemSend event?
> If so, at least I can do a Bcc on email replys, but not on new emails
> generated from that account. I looked through the object, but I can't seem
> to find this info....I'm SURE it is there though!
>
> -randy
>
>
> "Sue Mosher [MVP-Outlook]" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> Unless the user has manually set a From address for a specific message,
> Outlook doesn't provide that information until *after* the item has been
> sent and is in the Sent Items folder.
>
> The Item object passed as a parameter in the ItemSend event handler is the
> actual item that is in the process of being sent. The object browser (press
> F2 in VBA) can show you the MailItem properties.
>
> --
> 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
>
>
> "Randy" <(E-Mail Removed)> wrote in message
> news:Ue-dncVWKdLYFKbeRVn-(E-Mail Removed)...
>> Thanks for the response Sue! Perhaps a more simple way to do what I need
>> is
>> if I can get access to the 'From' address in the outgoing mail...is that
>> field accessible? I'd like to stay within the ItemSend application
>> subroutine....
>>
>> It's been a while since I've done programming....is the whole email record
>> sent into ItemSend before the email is actually sent? Or, does ItemSend
>> just pass variable back to the mail item? If the email record is sent to
>> the ItemSend routine, does a list exist somewhere of the variables
>> contained
>> within the Object record?
>>
>>
>> "Sue Mosher [MVP-Outlook]" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> Outlook doesn't provide any direct way to detect the account for an
>> outgoing
>> message. See
>> http://www.outlookcode.com/codedetail.aspx?id=889 for various workarounds
>> 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
>>
>>
>> "Randy" <(E-Mail Removed)> wrote in message
>> news:BOidnRksjOvoT6feRVn-(E-Mail Removed)...
>>> I'm trying to set up a VB routine that will automatically do a bcc on all
>>> outgoing emails when sending from one particular email account. I have 4
>>> email accounts that I use in Outlook 2003 and when I send an email from
>>> the
>>> 'sales' account, I want all emails bcc'd to another email account.
>>>
>>> I've set up a routine that will bcc all emails (from all accounts) using
>>> ItemSend, but I can't figure out how to make this happen for just a
>>> single
>>> account. Any thoughts? 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

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
4 email accounts set -up but not receiving in their accounts Chica69 Microsoft Outlook Discussion 1 14th Mar 2008 01:46 AM
EMail accounts, 'forwarding' accounts and OL03: Can it be done? pgtr Microsoft Outlook Discussion 3 7th Jul 2004 03:56 PM
EMail accounts, 'forwarding' accounts and OL03: Can it be done? pgtr Microsoft Outlook 0 7th Jul 2004 06:04 AM
Help consolidating the management of all my email accounts, including hotmail accounts. JOCA Microsoft Outlook 1 2nd Apr 2004 10:35 AM
Help consolidating the management of all my email accounts, including hotmail accounts. Thanks JOCA Microsoft Outlook Discussion 0 25th Mar 2004 07:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:28 AM.