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 = "firstname.lastname@example.org; objmail.BCC = "email@example.com"; objmail.CC = "firstname.lastname@example.org"; 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 meeting, learning, and sharing knowledge.