mailjet-abstraction
v0.0.5
Published
Build Together. Send Smarter.
Downloads
16
Maintainers
Readme
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: '[email protected]',
Name: 'yorName',
},
To: [
{
Email: '[email protected]',
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.