Skip to content

392 - HTML Templates

Email HTML templates with raw string content. This is an example of a MAML document.

maml
# Email template configuration
{
  from: "noreply@giving-edge.org"
  subject: "Vere ipsum in articulus statim iure."
  # HTML email body
  template: """
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Welcome</title>
</head>
<body>
  <h1>Hello, {{name}}!</h1>
  <p>Animi crur patria sol. Infit deduco aeneus territo dolores. Atque adduco vito tardus excepturi.</p>
  <a href="{{url}}">Get Started</a>
</body>
</html>
"""

  # Plain text fallback
  plain_text: """
Hello, {{name}}!

Cultellus aspernatur solio cito. Claro aliquid abscido adulescens corrupti. Basium consequatur umquam socius videlicet curiositas ultio capto tepesco aggero.

Visit: {{url}}
"""
}

See Also