Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@salestrip/emailer
Advanced tools
SalesTrip Engine emailer library
Sends emails with optional attachments that are base64 string encoded.
npm i @salestrip/emailer
const emailer = require('@salestrip/emailer')
exports.send = function() {
const payload = {
kind: EMAIL_KINDS_ENUM,
to: 'customer@salestrip.com', // only one recipient
subject: STRING,
model: {}
}
return emailer.create(payload)
}
If attachments are included then the specified fields are required. Sendgrid does not document how many attachments can be sent so as a precaution only 2 attachments can be sent.
const emailer = require('@salestrip/emailer')
exports.send = function() {
const payload = {
kind: EMAIL_KINDS_ENUM,
to: 'customer@salestrip.com',
cc: ['another@email.com'],
bcc: ['another@email.com'],
from: 'engineering@salestrip.com', // defaults to no-reply@salestrip.com
subject: STRING,
model: {},
attachments: [
{
type: 'application/pdf',
filename: 'my-file.pdf',
content: 'base64 encoded string'
}
]
}
return emailer.create(payload)
}
To release a new version, use npm. Using npm version
will update the version in package.json
before committing the resulting file change to git and adding the appropriate git tag. Pushing a tagged version to origin
will trigger a CI deployment to the npm registry.
To release a bugfix update the patch version.
npm version patch
git push
git push --tags
To release a feature update the minor version.
npm version minor
git push
git push --tags
To release a breaking change update the major version.
npm version major
git push
git push --tags
Copyright © 2018-2020 SalesTrip Limited. All rights reserved.
FAQs
Send emails with attachments
The npm package @salestrip/emailer receives a total of 131 weekly downloads. As such, @salestrip/emailer popularity was classified as not popular.
We found that @salestrip/emailer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.