create outlook meeting request in asp.net
-
hello guys, i'm sorry if repost. i need enlightenment i want to send an outlook meeting request from asp.net application. well, let's just say, there is a form that has date control to pick a date and textbox control to fill an email address, and of course a submit button to...well..submit it. when user click [SUBMIT] button, i want asp.net send a outlook meeting request with date parameter from date control to someone's email address from email textbox control(just like send an email but this will be outlook meeting request). can someone help me please ? anyone? anything? thx be4
-
hello guys, i'm sorry if repost. i need enlightenment i want to send an outlook meeting request from asp.net application. well, let's just say, there is a form that has date control to pick a date and textbox control to fill an email address, and of course a submit button to...well..submit it. when user click [SUBMIT] button, i want asp.net send a outlook meeting request with date parameter from date control to someone's email address from email textbox control(just like send an email but this will be outlook meeting request). can someone help me please ? anyone? anything? thx be4
-
Hi, try this link. Hope this[^] will help you.
Thanks, Sun Rays To get something you must have to try once. My Articles
Hhhhhmmmmm thx Sun Rays... i didn't quite get the answer from ur google key words but i managed get the answer, but thx anyway for ur support... i post the enlightenment for this issue just in case there's someone in the world being order by his/her manager to send outlook meeting request in asp.net apps :p
public static void CreateMeetingRequest(string toEmail, string subject, string body, DateTime startDate , DateTime endDate)
{
Microsoft.Office.Interop.Outlook.Application objOL = new Microsoft.Office.Interop.Outlook.Application();
Microsoft.Office.Interop.Outlook.AppointmentItem objAppt = (Microsoft.Office.Interop.Outlook.AppointmentItem)objOL.CreateItem(OlItemType.olAppointmentItem);
objAppt.Start = startDate;
objAppt.End = endDate;
objAppt.Subject = subject;
objAppt.Body = body;
objAppt.MeetingStatus = Microsoft.Office.Interop.Outlook.OlMeetingStatus.olMeeting;
objAppt.RequiredAttendees = toEmail;
objAppt.Send();
objAppt = null;
objOL = null;
}
CreateMeetingRequest(someone@bla.com,"Hello test","Cool it works",DateTime.Now.AddDays(1),DateTime.Now.AddDays(1).AddHours(1));