Example 18291

HTML Templates

Email HTML templates with raw string content.

# Email template configuration
{
from: "noreply@bogus-teriyaki.biz"
subject: "Unde quod acies."
# HTML email body
template: """
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Welcome</title>
</head>
<body>
<h1>Hello, {{name}}!</h1>
<p>Creptio cribro bis. Arx thymbra quo cilicium infit. Celo viriliter patrocinor tristis accusamus ventus defungo unde.</p>
<a href="{{url}}">Get Started</a>
</body>
</html>
"""

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

Templum ulterius advoco tutamen tripudio creta. Una celer casus caelum vitae tandem curis teres degenero. Cui itaque damnatio cenaculum demergo magnam.

Visit: {{url}}
"""
}

See also