Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
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.
The npm package awsm-mailer receives a total of 14 weekly downloads. As such, awsm-mailer popularity was classified as not popular.
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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.