Skip to content

simple email template is basic responsive html code for generating dynamic emails.

License

Notifications You must be signed in to change notification settings

vastril4o/email.template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-email-template

responsive

very basic

only 50 rows of code

variable keys

can be replaced dinamiclly

  • [hello]
  • [message]
  • [sign]
  • [footer]

screenshots

alt text alt text

usage

  • 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>");

About

simple email template is basic responsive html code for generating dynamic emails.

Topics

Resources

License

Stars

Watchers

Forks

Languages