What does Resolve do?

S

salad

I am using automation from Access to send an email. Here's some code
from MS and it uses the Resolve method to do something...I'm not sure
what. Is "resolving" necessary? I simply want to send out an email, I
really don't care whether or not the person is in an address book entry,
simply that the person gets the email. Can you clarify what Resolve does?

'Add a TO recipient(s) to the message.
Set objOutlookRecip = .Recipients.Add("(e-mail address removed)")
objOutlookRecip.Type = olto

' Resolve each Recipient's name.
For Each objOutlookRecip In .Recipients
objOutlookRecip.Resolve
Next
 
S

Sue Mosher [MVP-Outlook]

Resolve matches a name with a valid address. Outlook always does that automatically for SMTP addresses. If you are using only full SMTP addresses, you shouldn't need to call Resolve.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

salad

Sue said:
Resolve matches a name with a valid address. Outlook always does that
automatically for SMTP addresses. If you are using only full SMTP
addresses, you shouldn't need to call Resolve.

Hi Sue:

Thanks for the reply.

Is a SMTP address something like "(e-mail address removed)" but if I passed "Joe
Blow" instead I'd then want to Resolve?
 
S

Sue Mosher [MVP-Outlook]

Exactly. And you wouldn't want to send the message unless Recipient.Resolve returned True.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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