After searching I got this solution, hope this will help you.
class MeetingRequest
{
//Get the site ID
public static string GetSMTPHostName(Guid siteID)
{
using (SPSite site = new SPSite(siteID))
{
//Get the SMTP host name from “Outgoing e-mail settings”
return site.WebApplication.OutboundMailServiceInstance.Parent.Name;
}
}
//Get Outgoing email server settings
public static string GetFromEmailID(Guid siteID)
{
using (SPSite site = new SPSite(siteID))
{
//Get the “from email address” from “Outgoing e-mail settings”
return site.WebApplication.OutboundMailSenderAddress;
}
}
//Send Meeting Request with
public static void SendMeetingRequest(SPWeb web, string listName, int itemID, string organizerEmail, List<string> toEmailList, string title, string body)
{
Guid siteID = web.Site.ID;
iCal ical = new iCal();
string icalData = ical.GetICSFormat(web, listName, itemID, organizerEmail);
MailMessage msg = new MailMessage();
msg.From = new MailAddress(organizerEmail);
if (toEmailList.Count > 0)
{
for (int i = 0; i < toEmailList.Count; i++)
{
msg.To.Add(toEmailList[i]);
}
}
msg.Subject = title;
msg.Body = body;
AlternateView htmlView = AlternateView.CreateAlternateViewFromString(body, new ContentType(“text/html; method=request; charset=UTF-8;component=vevent”));
System.Net.Mime.ContentType ct = new System.Net.Mime.ContentType(“text/calendar”);
ct.Parameters.Add(“method”, “REQUEST”);
AlternateView avCal = AlternateView.CreateAlternateViewFromString(icalData, ct);
msg.AlternateViews.Add(avCal);
msg.AlternateViews.Add(htmlView);
SmtpClient clt = new SmtpClient(GetSMTPHostName(siteID));
try
{
clt.Send(msg);
}
catch { }
}
}
Refer this link also-
http://nhutcmos.wordpress.com/2010/12/28/deliver-meeting-request-from-sharepoint-calendar-programmatically/