
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@tshio/mailer-client
Advanced tools
Non-blocking RAD Mailer client for Node.js.
This is a 100% JavaScript library, with TypeScript definition, with the Promise API.
This module makes it simple to implement a Node.js application that uses RAD Mailer.
$ npm install @tshio/mailer-client
or
$ yarn add @tshio/mailer-client
// CommonJS
const { MailerClient } = require('@tshio/mailer-client');
// ES Module
import { MailerClient } from '@tshio/mailer-client';
const options = {
host: "localhost",
port: "50060",
}
const mailerClient = new MailerClient(options);
const request: SendRequest = {
emails: [
{
sender: {
name: "tsh.io",
email: "sender@example.com",
},
recipient: {
to: ["recipient@example.com"],
},
template: {
id: "test",
parameters: {
firstName: "Antonio",
lastName: "Hernández",
},
},
},
],
}
await mailerClient.mailer.send(request);
Send emails
Returns void or throw HttpError
Name | Type | Description | Default |
---|---|---|---|
messages | object[] | Array of MailMessage | |
priority | string | optional Send priority, allowed values: | urgent |
Name | Type | Description | Default |
---|---|---|---|
sender | object | Sender object | |
sender.name | string | Sender name | |
sender.email | string | Sender email | |
recipient | object | Recipient object | |
recipient.to | string[] | Recipient to | |
recipient.cc | string | optional Recipient bcc | |
recipient.bcc | string | optional Recipient bcc | |
template | object | Template object | |
template.id | string | Template id | |
template.parameters | object | Template parameters | |
attachments | object[] | Attachments objects array | |
attachment.fileName | string | Attachments file name | |
attachment.content | string | Attachments content encoded with base64 |
This project is licensed under the terms of the MIT license.
FAQs
RAD Mailer Client
The npm package @tshio/mailer-client receives a total of 0 weekly downloads. As such, @tshio/mailer-client popularity was classified as not popular.
We found that @tshio/mailer-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.