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.
@techie04/xpresser-mailer
Advanced tools
A library to help you send mails.
This plugin makes use of nodemailer and aws-sdk ses.
MENU
npm i @techie04/xpresser-mailer
# OR
yarn add @techie04/xpresser-mailer
{
"npm://@techie04/xpresser-mailer": true
}
({
// SMTP CONFIG
"mailer": {
provider: "SMTP", // SMTP
host: "", // SMTP Server Host
port: "", // SMTP Server Port
username: "", // SMTP Server Username
password: "", // SMTP Server Password
fromEmail: "no-reply@example.com" // From email
},
// AWS CONFIG
"mailer": {
provider: "AWS", // AWS
region: "", // AWS Server Region
fromEmail: "no-reply@example.com", // From email
// AWS credentials
AWS_ACCESS_KEY_ID: "",
AWS_SECRET_ACCESS_KEY: ""
},
})
In your controller or anywhere in your project.
const { sendMail } = require("@techie04/xpresser-mailer");
(async () => {
// array of attachments
const attachments = [
{
// filename (optional)
filename: "techieoriname.png",
// file path or url
path: path.join(__dirname, "..", "TechieOriname.png")
}
]
await sendMail(
"example@example.com", // to email
"testing subject", // message subject
"my message here", // message body
"text", // message format ("html" or "text")
attachments // optional field
);
});
import { AttachmentType, sendMail } from "@techie04/xpresser-mailer";
// array of attachments
const attachments: AttachmentType[] = [
{
// filename (optional)
filename: "techieoriname.png",
// file path or url
path: path.join(__dirname, "..", "TechieOriname.png")
}
];
await sendMail(
"example@example.com",
"testing subject",
"my message here",
"text",
attachments // optional field
);
FAQs
Mailer Plugin for xpresser
The npm package @techie04/xpresser-mailer receives a total of 4 weekly downloads. As such, @techie04/xpresser-mailer popularity was classified as not popular.
We found that @techie04/xpresser-mailer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
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.