c# winforms create email from outlook template file -


i creating mail using winforms so:

private void createoutlookemail(string addresses)         {             try             {                 outlook.application outlookapp = new outlook.application();                 outlook.mailitem mailitem = (outlook.mailitem)outlookapp.createitem(outlook.olitemtype.olmailitem);                 mailitem.subject = "this subject";                 mailitem.to = addresses;                 mailitem.body = "this message.";                 mailitem.importance = outlook.olimportance.olimportancelow;                 mailitem.display(false);             }             catch (exception ex)             {                 throw new exception("cdocument: error occurred trying create outlook email"                                     + environment.newline + ex.message);             }         } 

is possible insert email addresses/subject saved outlook template (.oft file) within winforms app?

the oft file somewhere in root of application.

do mean need modify existing oft file? can using redemption , rdosession.getmessagefrommsgfile


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -