public Mailing() { objMail = new LIB.Mailing(); StreamReader sr = new StreamReader(this._MailTemplateFile, Encoding.GetEncoding("iso-8859-9")); this._MailTamplate = sr.ReadToEnd(); sr.Close(); }
public Mailing() { objMail = new LIB.Mailing(); try { StreamReader sr = new StreamReader(HttpContext.Current.Request.MapPath(this._MailTemplateFile), Encoding.GetEncoding("iso-8859-9")); this._MailTemplate = sr.ReadToEnd(); sr.Close(); } catch (Exception) { this._MailTemplate = "||TITLE|| <br><br> ||CONTENT||"; } }