Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / July 2006

Tip: Looking for answers? Try searching our database.

What does Resolve do?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
salad - 29 Jul 2006 15:13 GMT
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("emailto@isp.com")
objOutlookRecip.Type = olto

' Resolve each Recipient's name.
For Each objOutlookRecip In .Recipients
    objOutlookRecip.Resolve
Next
Sue Mosher [MVP-Outlook] - 29 Jul 2006 16:36 GMT
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.

Signature

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
 

>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
[quoted text clipped - 10 lines]
>     objOutlookRecip.Resolve
> Next
salad - 29 Jul 2006 17:34 GMT
> 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 "joe@blow.com" but if I passed "Joe
Blow" instead I'd then want to Resolve?
Sue Mosher [MVP-Outlook] - 29 Jul 2006 18:10 GMT
Exactly. And you wouldn't want to send the message unless Recipient.Resolve returned True.

Signature

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
 

>
> Is a SMTP address something like "joe@blow.com" but if I passed "Joe
> Blow" instead I'd then want to Resolve?
salad - 29 Jul 2006 18:15 GMT
> Exactly. And you wouldn't want to send the message unless
> Recipient.Resolve returned True.

Thank you.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.