Redemption Recipients' AddEx method question

  • Thread starter Thread starter Bingo
  • Start date Start date
B

Bingo

The method takes 4 parameters. What are the valid values
for AddressType? I tried SMTP but it does not work.
Thanks.
 
oRdpMail.Recipients.AddEx "Bingo on
Exchange<[email protected]>", , "EX", 1
oRdpMail.Recipients.AddEx "Bingo on
yahoo<[email protected]>", , "EX", 1

I tried both SMTP and EX, it gave an error:

one or more recipients in this item were not usable. you
need to recreate the addresses
 
Try to also pass the address. The whole purpose of AddEx is that you can
pass all the parameters required to create a one-off entry id so that the
recipient immediately becomes resolved withou calling Recipient.Resolve or
Recipients.ResolveAll.
What was the error?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
It seems that EX does not work at all. I thought it
stands for Exchange Server. SMTP actually works with
external emails, like (e-mail address removed). The error message
I got is:

one or more recipients in this item were not usable. you
need to recreate the addresses.

This method actually works fine with adding recipients,
which I could not do with Add method.

Thanks.
 
What do you pass as an address? It needs to be the EX type address
("o=company/ou=whatever/etc") if you specify ":EX" as the address type.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
If I use ":EX" as the address type
and "o=company/ou=whatever/etc" as the email address, the
address cannot be resolved.

If I use "EX", Outlook generates an error saying
that "one or more recipients in this item were not
usable. you need to recreate the addresses." My code
saves, re-references and displays the modified mail
item. When I double click on the names, they just simply
vanished. When I directly open the saved email from
outlook, all the EX type addresses are actually
resolved.

Well, I just cannot figure out how to work with "EX"
or ":EX". Thanks.
 
What do you get in OutlookSpy? Click Imessage, go to the GetRecipientsTable
tab, double click on the PR_ENTRYID property.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
There's some value for PR_ENTRYID.

symbol:

abFlags[0]: 00
abFlags[1]: 00
abFlags[2]: 00
abFlags[3]: 00
muid: MUIDEMSAB
ulVersion: 0x00000001
ulType: 0x00000000 (DT_MAILUSER)
szAddr: /O=adfasfasd/ou=sdafasdf/cn=Recipients/cn=asdf
 
Hmmm... And if you add the same GAL entry through the Outlook UI, even
though the entry id is exactly the same, Outlook does not produce an error,
does it?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool


Bingo said:
There's some value for PR_ENTRYID.

symbol:

abFlags[0]: 00
abFlags[1]: 00
abFlags[2]: 00
abFlags[3]: 00
muid: MUIDEMSAB
ulVersion: 0x00000001
ulType: 0x00000000 (DT_MAILUSER)
szAddr: /O=adfasfasd/ou=sdafasdf/cn=Recipients/cn=asdf


-----Original Message-----
What do you get in OutlookSpy? Click Imessage, go to the GetRecipientsTable
tab, double click on the PR_ENTRYID property.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool





.
 
Back
Top