@acymailing/sending-service
v1.0.1
Published
AcyMailing sending service for Node.js
Downloads
4
Readme
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 protected]',
subject: 'test email from node lib',
body: '<h1>Hello</h1>, this is a test email from the node lib', // altBody?: string,
fromEmail: '[email protected]',
fromName: 'Email example',
replyToEmail: '[email protected]',
replyToName: 'Email no-reply',
bounceEmail: '[email protected]', // 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