U
Ugur KARATAS
in word application, my add in send e mail to someone with using outlook
object model.
But after sending mail Quit() method doesnt work truly. In task manager,
Outlook is still alive.
What is problem ?
[code snip]
Outlook.Application oApp = null;
oApp = new Outlook.Application();
Outlook.MailItem oMail = (Outlook.MailItem)
oApp.CreateItem(Outlook.OlItemType.olMailItem);
oMail.To = "(e-mail address removed)"
oMail.Subject = TB_Subject.Text;
oMail.Body = TB_Introduction.Text;
oMail.Send();
oApp.Quit();
oApp = null;
GC.Collect();
[end of code snip]
object model.
But after sending mail Quit() method doesnt work truly. In task manager,
Outlook is still alive.
What is problem ?
[code snip]
Outlook.Application oApp = null;
oApp = new Outlook.Application();
Outlook.MailItem oMail = (Outlook.MailItem)
oApp.CreateItem(Outlook.OlItemType.olMailItem);
oMail.To = "(e-mail address removed)"
oMail.Subject = TB_Subject.Text;
oMail.Body = TB_Introduction.Text;
oMail.Send();
oApp.Quit();
oApp = null;
GC.Collect();
[end of code snip]