Responsive email template for aws ses
Project description
@cloudcomponents/cdk-responsive-email-template
Responsive mjml email template for aws ses
Install
TypeScript/JavaScript:
npm i @cloudcomponents/cdk-responsive-email-template
Python:
pip install cloudcomponents.cdk-responsive-email-template
How to use
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from aws_cdk.core import Construct, Stack, StackProps
from cloudcomponents.cdk_responsive_email_template import ResponsiveEmailTemplate, TemplatePart
class ResponsiveEmailTemplateStack(Stack):
def __init__(self, scope, id, *, description=None, env=None, stackName=None, tags=None, synthesizer=None, terminationProtection=None, analyticsReporting=None):
super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting)
ResponsiveEmailTemplate(self, "EmailTemplate",
template_name="demo",
subject_part="cloudcomponents - {{ title }}",
text_part=TemplatePart.from_inline("text message"),
html_part=TemplatePart.from_inline("""<mjml>
<mj-head>
<mj-title>cloudcomponents - {{ title }}</mj-title>
</mj-head>
<mj-body>
<mj-section>
<mj-column>
<mj-text>
Hello {{ name }}!
</mj-text>
</mj-column>
</mj-section>
</mj-body>
</mjml>"""),
parsing_options=ParsingOptions(
beautify=True
)
)
API Reference
See API.md.
Example
See more complete examples.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for cloudcomponents.cdk-responsive-email-template-1.13.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bbb3646a0ce19e137a2f6e58f8c8533546b0fb44b6b0fee67106eb434f8009b |
|
MD5 | 3c1eccdb4a2e4d107e93b5dffe790eab |
|
BLAKE2b-256 | e594bef29ac1127bd479696566b6c1b4487ee32dbd208e3d8f52ed59b1f77345 |
Close
Hashes for cloudcomponents.cdk_responsive_email_template-1.13.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7cee541631b00f3aa42e41df4daaecbef9554b74dee69c2c70311300cc0f0bb |
|
MD5 | d8ac86aacd0c06153385a52b0cf16cb8 |
|
BLAKE2b-256 | 3f23f0634310b8464a0ecae0075f720005e7b777082fb02b2ce62f1033357ff6 |