0
Reply

don't send attachments to cc / outlook addin

malek alsafadi

malek alsafadi

Jan 27 2013 3:33 AM
1.2k
private void Application_ItemSend(Outlook.MailItem Item, ref bool Cancel)
{
	GetMessageID_NEW(null, Item, Item, "OUTGOING");
	if (Item.Attachments.Count > 0) {
		if ((Item.CC != null)) {
			if (MessageBox.Show("Do you want to send the attachments to CC(s)?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) {
				// What should I write here?
			}
		}
	}
}