Results 1 to 9 of 9

Thread: Outlook Recipient (how to determine?)

  1. #1

    Thread Starter
    PowerPoster cafeenman's Avatar
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    2,641

    Outlook Recipient (how to determine?)

    Has anyone ever figured out a simple way to find out who the MAIN recipient is in Outlook?

    I've done a lot of searching and from what I can tell there is no easy way. What Outlook gives you instead is a Recipient list that you have to iterate through and then I don't know what. It was too convoluted and messy for me to dive deeper into it. In the end I'm not even sure it was possible to figure out anything more than a list of the CC's and everyone else who got the e-mail.

    Did I miss something or is it really that difficult? This is something I've wanted to put in my software for a long time and haven't been able to figure out.

    Thanks.

  2. #2
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,979

    Re: Outlook Recipient (how to determine?)

    I've never heard of the term "main recipient".
    In mail you have 3 possible places for recipients: to:, cc: and bcc:
    But they are all 3 just basic lists of email addresses.

  3. #3
    PowerPoster
    Join Date
    Feb 2017
    Posts
    5,119

    Re: Outlook Recipient (how to determine?)

    Quote Originally Posted by cafeenman View Post
    What Outlook gives you instead is a Recipient list that you have to iterate through
    Yes, because the "main" recipients may be several addresses and not only one.

    When you write an email in the field "To:" you can write as many addresses as you want (separated by ';'), did you see that?

  4. #4
    Fanatic Member
    Join Date
    Jan 2015
    Posts
    599

    Re: Outlook Recipient (how to determine?)

    try this
    Dim objOutlook As Object

    Dim nI As Long
    Dim pColValue As New Collection
    Dim pColID As New Collection

    2 Set objOutlook = CreateObject("Outlook.Application")

    3 On Error Resume Next
    4 For nI = 1 To objOutlook.session.Accounts.Count
    5 pColValue.Add objOutlook.session.Accounts.Item(nI), objOutlook.session.Accounts.Item(nI)
    6 pColID.Add objOutlook.session.Accounts.Item(nI), objOutlook.session.Accounts.Item(nI)
    7 Next
    8 On Error GoTo ERROR_Outlook_ChooseMailbox

  5. #5

    Thread Starter
    PowerPoster cafeenman's Avatar
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    2,641

    Re: Outlook Recipient (how to determine?)

    Thank you. I will try that.

    Out of curiosity, what does the 'p' in the prefix stand for or signify?

  6. #6

    Thread Starter
    PowerPoster cafeenman's Avatar
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    2,641

    Re: Outlook Recipient (how to determine?)

    Quote Originally Posted by Eduardo- View Post
    Yes, because the "main" recipients may be several addresses and not only one.

    When you write an email in the field "To:" you can write as many addresses as you want (separated by ';'), did you see that?
    In my case, emails I receive I'm the only recipient but my company has multiple email addresses and I want to show in the communication form which address received it.

  7. #7
    Fanatic Member
    Join Date
    Jan 2015
    Posts
    599

    Re: Outlook Recipient (how to determine?)

    p -> private

  8. #8
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,979

    Re: Outlook Recipient (how to determine?)

    Quote Originally Posted by cafeenman View Post
    In my case, emails I receive I'm the only recipient but my company has multiple email addresses and I want to show in the communication form which address received it.
    Then the list will contain only one item..
    Last edited by Arnoutdv; Apr 18th, 2024 at 03:50 AM. Reason: Typos

  9. #9

    Thread Starter
    PowerPoster cafeenman's Avatar
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    2,641

    Re: Outlook Recipient (how to determine?)

    OK. Again, thank you. I will try it and see how it goes. Hopefully it's that simple.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width