
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
awsm-mailer
Advanced tools
AWSM package for sending emails.
In your JAWS project root directory, run:
jaws module install https://github.com/jaws-framework/jaws-core-js
jaws module install https://github.com/eahefnawy/awsm-mailer
Set the following env vars (using CLI or the .env file):
EMAIL_SERVICE=Gmail
EMAIL_SERVICE_USER=username@gmail.com
EMAIL_SERVICE_PASS=password
deploy your code with JAWS dash
, then test the Lambda with the following event:
{
"from": "username@gmail.com",
"to": "receiver@address.com",
"subject": "Hello",
"template": "welcome",
"context": {
"first_name": "Sam",
"last_name": "Smith"
}
}
This will use the welcome
template coupled with the context/data (first_name & last_name).
You should receive an email that says:
Welcome Sam Smith
You can edit the template text by editing these two files:
<project-dir>/back/aws_modules/awsm-mailer/send/templates/html.handlebars
<project-dir>/back/aws_modules/awsm-mailer/send/templates/text.handlebars
awsm-mailer supports the following 30 service, pre-configured and ready to use. You just provide the username/password:
awsm-mailer comes with a welcome
template for demonstration. You can add/remove templates from the following directory:
<project-dir>/back/aws_modules/awsm-mailer/send/templates/
awsm-mailer uses handlebars as the default template engine. You can use any other template engine by adding it to the package.json
file and update dependencies with npm install
.
Here's the full list of supported templates:
after chosing your template engine, make sure the file extentions of the template files match the template you chose:
html.{{ext}}
text.{{ext}}
style.{{ext}}
Here's the full list of options you can pass in your event:
'sender@server.com'
or formatted 'Sender Name <sender@server.com>'
, see here for detailstemplates
folder{"first_name": "..."}
FAQs
AWSM package for sending emails.
We found that awsm-mailer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.