Email TemplatesΒΆ
Similarly to document templates, we can customize templates for emails sent by the Wizard located in templates folder. It also uses Jinja templating language. And we can create HTML template, Plain Text template, add attachments, and add inline images (which can be used inside the HTML using Content-ID equal to the filename). We can learn more about the template structure and contents directly from the mailer GitHub repository.
Including our own email templates while using dockerized Wizard is practically the same as for DMP templates. We can also bind whole templates folders. (or even templates if we want to change both):
mailer:
image: datastewardshipwizard/mailer
restart: always
depends_on:
- postgres
- dsw-server
volumes:
- ./config/application.yml:/app/config/application.yml:ro
- ./templates:/home/user/templates:ro
# ... (continued)