Re: help with AddRecipToContacts procedure by Sue Mosher

Tech-Archive recommends: Fix windows errors by optimizing your registry



I'm glad you like the code. You can check the value of Recipient.AddressEntry.Type to determine whether the recipient has an SMTP address.

The sample code at http://www.outlookcode.com/d/code/autobcc.htm shows how to add a Bcc recipient using the same Application.ItemSend event in Outlook VBA. You'd just need to combine the two into one procedure.

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

"Richard T" <RichardT@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:6F7AAF5F-67FA-4779-9CE3-237FC2B06CE2@xxxxxxxxxxxxxxxx
One last thing. I am also using a rule on my machine to add my own email
address in the CC field to each message that I send. When I put Sue's code
into place on my machine, this rule has stopped functioning.

Is there a way to make the rule work again? Or better yet, have this code
insert my email address as a BCC instead so I can delete the rule?

Thanks again!
-- Richard

"Richard T" wrote:

I am a newbie to Outlook VBA, so pardon me if this is a stupid question.

I am using the code by Sue Mosher that's found here
(http://www.outlookcode.com/d/code/autoaddrecip.htm) to automatically add
recipients of my outgoing mail to my contacts folder. This is working and I
am very excited about it. Many thanks to Sue for making this code available.

However, I am in an Exchange environment and when I send mail to another
Exchange user, I end up with a contact that has an email address like this:
"/o=Exchange1/ou=First Administrative Group/cn=Recipients/cn=jondoe"

Is there a way to modify the AddRecipToContacts procedure so that it only
adds those recipients who are not exchange users? Better yet, is there a way
to get the Exchange user's actual email address?

Thanks in advance,
Richard
.



Relevant Pages

  • Re: List Box
    ... Sue Mosher, Outlook MVP ... >> Target Recipients are BOTH Internal and External, and YES, we use Exchanger ...
    (microsoft.public.outlook.program_forms)
  • Re: Appointment Form With Scheduling
    ... Sounds like your code to add recipients isn't preceded by the required statement to set MeetingStatus = olMeeting ' ... Sue Mosher, Outlook MVP ... subroutines that clear all recipients and add recipients as needed. ...
    (microsoft.public.office.developer.outlook.forms)
  • Re: Custom form not executing Read page
    ... Sue Mosher, Outlook MVP ... > By: Sue Mosher In: ... > Sue Mosher, Outlook MVP ... >> I have checked to make sure the recipients outlook is set to MS Outlook ...
    (microsoft.public.outlook.program_forms)
  • Re: Messaging Interface error when trying to send a custom form
    ... machine and all recipients have acknowledged receipt). ... All users can see the form in the public folder and all ... >Sue Mosher, Outlook MVP ...
    (microsoft.public.outlook.program_forms)
  • Re: Outlook Email Merge Problems
    ... This is not an Outlook issue. ... Are you saying that even regular email messages you send fail? ... messages and shows as being sent in my sent folder. ... the emails are received by the recipients. ...
    (microsoft.public.outlook)