Skip to content

Email templates with powershell scripting to allow for dynamic data to fill in layout

Notifications You must be signed in to change notification settings

curbyourcode/EmailTemplate-examples

Repository files navigation

Email Templates with Powershell scripting

Email template example. Email templates are done with HTML, and inline styles with CSS2 its tedious and old school. Due to the various emial providers this project shows how to make styles and images display on all email platforms inlcuding outlook, gmail, yahoo etc. They are done so with tags to represent each email provider to render specifically for that provider. I have a powershell script that dynamically generates the header title, footer, and speficic color for the particular template/notifiacton. Note that you can change the variables and information to be generated within he DynamicText.ps1 file.

How to Use this appliaction tutorial

  1. Clone down repo
  2. run npm install connect serve-static
  3. Delete all template files except for layout.html
  4. Within powershell go to the project directory
  5. In powrshell run the DynamicText.ps1 file to execute the scripts. (/Users/you/Documents//email-template ./DynamicText.ps1)
  6. go to localhost:/(yourfilename.html)

Technologies Used

  • HTML
  • CSS2
  • Powershell script
  • static-server
  • npm

Jan 21, 2019   Rouz Majlessi
www.rouzm.com

About

Email templates with powershell scripting to allow for dynamic data to fill in layout

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published