Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send email from Access2002 to multiple recipients using Outlook

Status
Not open for further replies.

PurpleUnicorn

Programmer
Mar 16, 2001
79
US
I have a table with email addresses and filenames. Many addresses receive the same file.(20 to be exact). I am sending the emails using the Outlook object.
I have created a string with all of the addresses separated by "; " but I get the error "outlook does not recognize one or more names". When I send individual emails, there is no problem with the names/addresses. Is there some way to accomplish this?

Thanks!
 
In your code do you have a resolveall?

Dim mlItem as Object 'mail message
...
mlItem.Recipients.ResolveAll
mlItem.Send
 

Thanks for the response. What does ResolveAll do?

I was able to solve the problem - there was a bad email address in the client data. As soon as I removed the record, everything worked fine.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top