if not empty(this.cTo) or not empty(.cDisplayName) .RecipIndex = 0 .RecipAddress = alltrim(this.cTo) .RecipType = 1 endifThat works great. The code to add the second recipient is:
if not empty(this.cCC) or not empty(.cCCDisplayName) .RecipIndex = 1 .RecipAddress = alltrim(this.cCC) .RecipType = 2 endifI also have some code to add attachments, but the main thing here is that everything works fine with one recipient and zero, one, or more attachments. When I let the code to add the second recipient execute, I get the "unspecified error".