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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook.Application

Status
Not open for further replies.

dirtybarry

Programmer
Sep 1, 2011
7
US
Trying to send a ToAddress with multiple addresses seperated by a semi-colon to OutLook via the APPARENTLY UNDOCUMENTED Microsoft Outlook 14.0 Object Library LIKE THIS:

Set objOutlookRecip = .Recipients.Add(My.[ToAddress])

Where My.[ToAddress] is address1@bla;address2@bla

The result is "ONE OR MORE ADDRESSES UNKNOWN", yet I can send either one of the addresses ALONE, successfully.

What the HELL is up wit dis????????????????????????
 
Found it myself, here in this forum. Thanks to all.

The fix was to replace

Set objOutlookRecip = .Recipients.Add(My.[ToAddress])

with

.To = My.[ToAddress]

Works like a champ. Who needs documentation for such junk as the Microsoft Outlook 14.0 Object Library? Heck a few hours/days on a forum, and by gum you jist mite find an answer.

Go McRowSoft, what a cumpny.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top