0.0.5 ā€¢ Published 9 months ago

mailjet-abstraction v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Getting started

Build Together. Send Smarter.

codecov

Node.js build and publish package

Running Code Coverage

Installation

npm i mailjet-abstraction
# Or
yarn add mailjet-abstraction

Usage

import { EmailService  } from 'mailjet-abstraction';

try{
  await new EmailService('apiKey', 'apiSecret', { version: 'v3.1' })
    .request({
  Messages: [
    {
      From: {
        Email: 'yorEmail@domain.com',
        Name: 'yorName',
      },
      To: [
        {
          Email: 'anEmail@domain.com',
          Name: 'Doe',
        },
      ],
      Subject: 'Greetings from Mailjet.',
      TextPart: 'My first Mailjet email',
      HTMLPart: `<body>
             <h3>Test</h3>
            </body>`,
    },
  ],
});
}catch (e){
  console.error(e)
}

Clone this repository: git clone https://github.com/hebertcisco/mailjet-abstraction

Open the directory and run the script line:

cd mailjet-abstraction && npm i

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page.

Show your support

Give a ā­ļø if this project helped you!

Or buy me a coffee šŸ™ŒšŸ¾

BTC WALLET: 3P4oVEdSP8CPdFZZwS2dboRyLFXLSTE7Gq

šŸ“ License

Copyright Ā© 2022 Hebert F Barros. This project is MIT licensed.

0.0.5

9 months ago

0.0.4

1 year ago

0.0.3

2 years ago

0.0.2

3 years ago

0.0.1

3 years ago