Error when editing Body and CC of email

B

Brian

I am editing the body and CC properties of a mailitem in the Item_Send event in my VB.NET addin. The error I get is "The operation failed." and seems to happen on the send of the email. If I only edit the body or only edit the CC field, things work OK. Can anyone offer an insight on why this happening?
Thanks.

Here's my code:
Private Sub app_ItemSend(...) handles ol_Outlook.ItemSend
Item.Body = Item.Body & "test"
Item.CC = "(e-mail address removed)"
End Sub
 

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