📦 mailjet-abstraction
Build Together. Send Smarter.
Did you like the project? Please, considerate a donation to help improve!
Build Together. Send Smarter.
Getting started
Build Together. Send Smarter.
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
Or buy me a coffee 🙌🏾
BTC WALLET: 3P4oVEdSP8CPdFZZwS2dboRyLFXLSTE7Gq
📝 License
Copyright © 2022 Hebert F Barros.
This project is MIT licensed.