TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Developer
NA
9
13k
Problem with Sending Email using Outlook Express 6
Mar 7 2011 4:59 AM
Hi
My Winforms application need to send email using Outlook Express, since not all client will be having Outlook 2007. My question is Microsoft.Office.Interop.Outlook can used to handle Outlook 2007 only or it can also be used to Outlook Express ?
The Code which I am Using is As Bellow. (This code i got from this forum member Only)
Outlook.Application outLookApp = new Outlook.Application();
Outlook.NameSpace objNameSpace = outLookApp.GetNamespace("MAPI");
Outlook.MAPIFolder objFolder = objNameSpace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox);
Outlook.MailItem mailItem = (Outlook.MailItem)outLookApp.CreateItem(Outlook.OlItemType.olMailItem);
mailItem.To = strEmailTo;
mailItem.CC = strCC;
mailItem.BodyFormat = Outlook.OlBodyFormat.olFormatPlain;
mailItem.Body = strBody;
mailItem.Subject = strSubject;
mailItem.Send();
Reply
Answers (
2
)
Error occured when adding row in datagrid view
Store procedure for Storing Data in Database.