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
Post a Comment