GithubHelp home page GithubHelp logo

nodemailer-sendinblue-v3-transport's Introduction

Github action workflow status Coverage Status CodeFactor GitHub Release Known Vulnerabilities MIT Licence

Sendinblue V2/3 transport module for Nodemailer

โš ๏ธ This repository has been archived since Sendinblue is now Brevo, and Marcel is back on track.

This module applies for Nodemailer v2+ and provides a transport for Sendinblue.

Dirty and quickly forked from the amazing but not longer maintened job of my guy Marcel ๐Ÿ˜Ž.

Usage

Install with npm

$ npm i nodemailer-sendinblue-v3-transport

Require the module

const nodemailer = require('nodemailer');
const sendinBlue = require('nodemailer-sendinblue-v3-transport');

Create a Nodemailer transporter

V2

const transporter = nodemailer.createTransport(sendinBlue(options))

V3

const transporter = nodemailer.createTransport(sendinBlue({ ...options, ...{ apiUrl: 'https://api.sendinblue.com/v3/smtp' }}))

Available Options

License

MIT

nodemailer-sendinblue-v3-transport's People

Contributors

finematterdave avatar steve-lebleu avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

nodemailer-sendinblue-v3-transport's Issues

Error: headers is blank on transporter.sendMail

Node.js version: v16.14.2
"nodemailer": "^6.7.3",
"nodemailer-sendinblue-v3-transport": "^1.0.1"

Currently I'm receiving this error from sendinblue,
message: { err: Error: headers is blank (missing_parameter, 400) at responseError (\node_modules\nodemailer-sendinblue-v3-transport\lib\nodemailer-sendinblue-v3-transport.js:335:10) at IncomingMessage.<anonymous> (\node_modules\nodemailer-sendinblue-v3-transport\lib\nodemailer-sendinblue-v3-transport.js:390:27) at IncomingMessage.emit (node:events:538:35) at endReadableNT (node:internal/streams/readable:1345:12) at processTicksAndRejections (node:internal/process/task_queues:83:21) }, level: '\x1B[31merror\x1B[39m', timestamp: '2022-05-19T09:30:25.009Z' }
I've run some tests and it really is empty when I attempt to console.log(data.headers) on line 411, while on other hand this.reqOptions.headers has the entire object, replacing data.headers on line 421 with this.reqOptions.headers solves the problem and the request is successful, but I don't think it's the right solution in this case.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.