mailjet-abstraction
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.3 • Public • Published

    :package: ts-npm-package-boilerplate

    📦 mailjet-abstraction

    Build Together. Send Smarter.

    Issues GitHub pull requests GitHub Downloads GitHub Total Downloads

    Report Bug Request Feature

    Did you like the project? Please, considerate a donation to help improve!

    Build Together. Send Smarter.

    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 🙌🏾

    📝 License

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

    Install

    npm i mailjet-abstraction

    DownloadsWeekly Downloads

    4

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    17.9 kB

    Total Files

    21

    Last publish

    Collaborators

    • tecnobert