Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1. string Body = String.Empty;
  2. string path = Path.Combine(HttpContext.Current.Server.MapPath(@"~/Views/EmailTemplates/"), "Template1.html");
  3. using (StreamReader reader = new StreamReader(path))
  4. {
  5.                 Body = reader.ReadToEnd();
  6. }
  7.  
  8. Body = Body.Replace("{subject}", subject);
  9. Body = Body.Replace("{message}", messageText);
  10. Body = Body.Replace("{costam}", costam);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement