I tried to send mail form C# using my outlook account but I don't want the notification pop up window to be appeared when trying to send mails.
Any idea to disable the notifications windows?
Here my code snippent:
public static void SendEmail(string _ToEmail, string _Subject, string _EmailBody)
{
Microsoft.Office.Interop.Outlook.Application oApp = new Microsoft.Office.Interop.Outlook.Application();
Microsoft.Office.Interop.Outlook.MailItem email = (Microsoft.Office.Interop.Outlook.MailItem)(oApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem));
email.Recipients.Add(_ToEmail);
email.Subject = _Subject;
email.Body = _EmailBody;
((Microsoft.Office.Interop.Outlook.MailItem)email).Send();
}