> You didn't say which statement fails.
>
[quoted text clipped - 59 lines]
> >> > 2007, and I manually had chosen the 11.0 library. Any ideas on how to
> >> > resolve this would be helpful.
Outlook should be able to resolve IsEmailAddress to a recipient if it is a straight SMTP address, but if you're passing a name that has to be resolved, a login is necessary. Otherwise, Outlook may not know what address lists are available for name resolution. You can add an objOlns.Login statement to either use a specific profile or prompt the user to choose one.

Signature
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
> Thanks Sue, I was replying to BH as to why the code failed but mine failed
> on the objOutlookMsg.Recipients.Add lsEmailAddress statement. It quite
[quoted text clipped - 10 lines]
>> >
>> > It failed if I did not have Outlook open but works fine with Outlook open.
Tim Freeman - 19 Sep 2007 22:56 GMT
> Outlook should be able to resolve IsEmailAddress to a recipient if it is a straight SMTP address, but if you're passing a name that has to be resolved, a login is necessary. Otherwise, Outlook may not know what address lists are available for name resolution. You can add an objOlns.Login statement to either use a specific profile or prompt the user to choose one.
>
[quoted text clipped - 12 lines]
> >> >
> >> > It failed if I did not have Outlook open but works fine with Outlook open.