@acymailing/sending-service
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

AcyMailing node library

Installation

npm i @acymailing/sending-service

Usage

import {AcyMailer} from '@acymailing/sending-service';

const mailer = new AcyMailer('your-license-key');

const domain = await mailer.addDomain({name: 'example.com'});

const email = {
    to: 'email@recipients.com',
    subject: 'test email from node lib',
    body: '<h1>Hello</h1>, this is a test email from the node lib', // altBody?: string,
    fromEmail: 'email@example.com',
    fromName: 'Email example',
    replyToEmail: 'no-reply@example.com',
    replyToName: 'Email no-reply',
    bounceEmail: 'bounce@example.com', // cc?: string[];
    attachments: [
        '/paht/to/attachment.png'
    ]
};

const response = await mailer.sendEmail(email);

Development

Install the dependencies:

npm install

Build and test:

npm run test

/@acymailing/sending-service/

    Package Sidebar

    Install

    npm i @acymailing/sending-service

    Weekly Downloads

    1

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    11.8 kB

    Total Files

    14

    Last publish

    Collaborators

    • john-acyba