Hey guys i'm trying to figure out how to open a new message window from outlook when i click a button on my form any help greatly aprreciated thanks.
Jump to Post
Try the following:
Application objOutlook = new ApplicationClass(); NameSpace objNS = objOutlook.GetNamespace("MAPI"); MailItem objmail = (MailItem)objOutlook.CreateItem(OlItemType.olMailItem); objmail.To = "email@example.com; objmail.BCC = "firstname.lastname@example.org"; objmail.CC = "email@example.com"; objmail.Subject = "Subject of the email goes here"; objmail.Body = "Body of the email goes here...";
You dont have to use all …
All 4 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.