only 50 rows of code
can be replaced dinamiclly
- [hello]
- [message]
- [sign]
- [footer]
- asp.net
// geting html as string from email.html file
StreamReader str = new StreamReader(Server.MapPath("~/Views/Template/email.html"));
string email_html = str.ReadToEnd();
str.Close();
// replace key whit your values
email_html = email_html.Replace("[hello]", "Hello John Doe");
email_html = email_html.Replace("[message]", "This is your message");
email_html = email_html.Replace("[sign]", "Good luck!");
email_html = email_html.Replace("[footer]", "Company name<br/><a href="#">back to website</a>");