The following variables are provided by Sendwithus and are available in every template. These variables can be accessed like any other Jinja variable:
Usage | Description | Example |
---|---|---|
{{ swu.recipient.address }} | Recipient's email address | danny.tanner@email.com |
{{ swu.recipient.name }} | Recipient's name (if provided) | Danny Tanner |
{{ swu.sender.address }} | Sending address | notifications@yourdomain.com |
{{ swu.sender.name }} | Sending name | AwesomeProduct |
{{ swu.sender.reply_to }} | Sending Reply-To address (if provided) | no-reply@yourdomain.com |
{{ swu.template.id }} | Template API ID | tem_2OASY7df92 |
{{ swu.template.locale }} | Template Locale | en-US |
{{ swu.template.name }} | Template Name | Welcome Email |
{{ swu.template.version_id }} | Template Version ID | ver_123453sdf30 |
{{ swu.template.version_name }} | Template Version Name | Version A - Friendly Subject Line |
{{ swu.webview_url }} | URL to view this email in a browser | |
{{ swu.log_id }} | Send receipt ID | log_1234asdf9876lkjh |