///
/// Get Email Body from file
///
///
public static string GetEmailBodyFromFile(string filePath)
{
string emailMasterBody = "";
Encoding encode = System.Text.Encoding.GetEncoding("utf-8");
using (System.IO.StreamReader objReader = new StreamReader(filePath, encode))
{
emailMasterBody = objReader.ReadToEnd();
}
return emailMasterBody;
}
No comments:
Post a Comment