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.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a786ac0a08cbca03280ed438f6517597bfaee57135e04ae32621016b0a40369c |
|
MD5 | 7af00eeabfd09c2722e9d8588880cdbb |
|
BLAKE2b-256 | 1de78d60db99df45cfa023aa59d29df555069eb79cdb1cc5ec35ecd27e5005aa |
Close
Hashes for cloudcomponents.cdk_responsive_email_template-1.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffb540c02c57c2cc0cfda67b8a6650cd7e37f695726864b83e220daa9bccc043 |
|
MD5 | 5066205d24eb1887678e3db83cc44003 |
|
BLAKE2b-256 | ded67c3289d51a2d716f1457020403dd1b07a9f31ba44b82eb7cd2d0d11c7533 |