/email-templates

Email templates used to send email through Mailgun.

Primary LanguageTypeScriptEuropean Union Public License 1.2EUPL-1.2

React Email Starter

Templates for emails used when sending through Mailgun. Advantages of using this tool:

  • Build in dummer version of HTML, not all things that works in html will work in email html, example
  • Reuse of components

Getting Started

First, install the dependencies:

yarn

Then, run the development server:

yarn dev

Open localhost:3000 with your browser to see the result.

VSCode support

VSCode supports this plugin out of the box. However, sometimes it can use its own typescript version instead of the project one, resulting in not reading the local tsconfig. If you are using VSCode be sure to have Use workspace version option selected in Typescript: Select Typescript Version... command available in the command pallete.

image

Deploying

  1. Create mail using this tool
  2. Upper tabs has tab Source and lower tabs has tab HTML Screenshot
  3. This code has to be uploaded to mailgun for credentials ask any developer
    • set desired domain, mostly we are using digital.bratislava.sk but it depends
    • Left menu Sending -> Templates Screenshot
    • Create new template and paste code from HTML tab

License

MIT License