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
vineet sharma
NA
22
21.8k
how to add sender details while sending message 2 outlook
Apr 1 2014 2:47 AM
how to add sender details(email id) while sending an email to receivers id having outlook id .here is my code
using lookout = Microsoft.Office.Interop.Outlook;
using outlookapp = Microsoft.Office.Interop.Outlook.Application;
using mapiNamespace = Microsoft.Office.Interop.Outlook.NameSpace;
using CalendarFolder = Microsoft.Office.Interop.Outlook.MAPIFolder;
using outlookCalendarItems = Microsoft.Office.Interop.Outlook.Items;
using outlookrecepient = Microsoft.Office.Interop.Outlook.Recipient;
using outlookrecepients = Microsoft.Office.Interop.Outlook.Recipients;
outlookapp outlook = new outlookapp();
MailItem mailItem = (MailItem)outlook.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem);
mailItem.To = oulookid;
mailItem.Subject = "LEAVE GRANTED FROM " + startdate + "to" + enddate;
mailItem.Body = "ENJOY THE HOLIDAYS";
mailItem.Importance = OlImportance.olImportanceHigh;
mailItem.Sender = /* what to write*/
mailItem.Send();
thanks in advance
Reply
Answers (
0
)
Drag & Drop in table? depend on dB valu?
how to give username and password default in asp.net without