Redemption Recipients' AddEx method question

B

Bingo

The method takes 4 parameters. What are the valid values
for AddressType? I tried SMTP but it does not work.
Thanks.
 
D

Dmitry Streblechenko \(MVP\)

Yes, "SMTP" is the most common. What is your code and how did you try it?

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

Bingo

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
 
D

Dmitry Streblechenko \(MVP\)

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
 
B

Bingo

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

Dmitry Streblechenko \(MVP\)

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
 
B

Bingo

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

Dmitry Streblechenko \(MVP\)

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
 
B

Bingo

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
 
D

Dmitry Streblechenko \(MVP\)

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





.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top