Skip to content

Latest commit

 

History

History

email

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@dao-dao/email

Email templates to generate DAO DAO emails.

Usage

Render template

yarn render

This will render all emails in the emails directory and output a template in the templates directory, formatted for the AWS SES Template API.

Upload template to AWS SES

This script manages templates stored in AWS SES. To set it up, create a .env file based on the .env.example file, and fill in the credentials.

$ yarn ses -h

Usage: ses [options]

Options:
  -s, --set <name>     create a new template or replace an existing one
  -l, --list           list all templates
  -d, --delete <name>  delete a template
  -h, --help           display help for command

The name for set is the name of the file without the .tsx prefix in the emails/ folder. The name for delete is the name of the template in AWS SES, which is defined inside the template.