2.2.0 • Published 2 months ago
@cloudcomponents/cdk-responsive-email-template v2.2.0
@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
import { ResponsiveEmailTemplate, TemplatePart } from '@cloudcomponents/cdk-responsive-email-template';
import { Stack, StackProps } from 'aws-cdk-lib';
import { Construct } from 'constructs';
export class ResponsiveEmailTemplateStack extends Stack {
constructor(scope: Construct, id: string, props: StackProps) {
super(scope, id, props);
new ResponsiveEmailTemplate(this, 'EmailTemplate', {
templateName: 'demo',
subjectPart: 'cloudcomponents - {{ title }}',
textPart: TemplatePart.fromInline('text message'),
htmlPart: TemplatePart.fromInline(`<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>`),
parsingOptions: {
beautify: true,
},
});
}
}
API Reference
See API.md.
Example
See more complete examples.
License
2.2.0
2 months ago
2.1.0
2 years ago
2.0.0
2 years ago
1.19.0
2 years ago
1.18.0
2 years ago
1.17.0
2 years ago
1.16.0
2 years ago
1.15.0
3 years ago
1.14.0
3 years ago
1.13.0
3 years ago
1.12.0
3 years ago
1.11.0
3 years ago
1.10.1
3 years ago
1.10.0
3 years ago
1.9.0
3 years ago
1.8.1
3 years ago
1.8.0
3 years ago
1.7.0
3 years ago
1.6.0
3 years ago
1.5.0
3 years ago
1.4.0
3 years ago
1.3.0
3 years ago
1.2.0
3 years ago
1.1.0
3 years ago
1.0.1
3 years ago