Question about sending e-mails - Outlook 2003

S

Steve Marshall

Hi All,

I have an application in Access that allows sending of e-mails to
selected recipients from the database - pretty basic stuff. I am doing
a .Resolve on each recipient as I add them to the e-mail item, and that
catches several problems, like badly-formed e-mail addresses. But the
..Send method still fails sometimes, with an error that has the
corresponding message "Outlook could not recognize one or more
addresses", or words to that effect. This is very irritating - what is
Outlook checking at the .Send stage that it doesn't check at the
..Resolve? Is there a way to force it to do all possible checks on the
list of recipients BEFORE the .Send? I can't see any other methods
that appear to allow that. Or can I somehow find out which addresses
it doesn't like? I really want to be able to tell the user which
addresses are OK and which are not, BEFORE the .Send is done, so I can
give an option to cancel and correct the bad addresses if they want.

Thanks
 
E

Eric Legault [MVP - Outlook]

There's a Recipients.ResolveAll method; if any have failed, the Recipient
object in the Recipients collection will have the Resolved property set to
False.
 
S

Steve Marshall

Thanks Eric, I'll pursue that. Does that mean that Outlook is calling
this ResolveAll method, and checking the Resolved flags, before it does
the Send? I am already calling the Resolve method on each Recipient
after I add it to the collection, and checking the Resolved flag - why
isn't any problem caught at this stage?
 

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