Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
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 1 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.