orliesaurus / nodemailer-mailgun-transport

nodemailer is an amazing node module to send emails within any of your nodejs apps. This is the transport plugin that goes with nodemailer to send email using Mailgun 🔫
MIT License
882 stars 98 forks source link

Why use this package? #12

Closed Fonger closed 9 years ago

Fonger commented 9 years ago

I found the following code just working for me. Any reason to use this package?

var transporter = nodemailer.createTransport({
    service: 'Mailgun',
    auth: {
        user: 'postmaster@mailgun.domain.com',
        pass: 'password'
    }
});
orliesaurus commented 9 years ago

This allows you to send emails through the web-api which can circumnavigate SMTP connections issues. You can use the smtp transport the way you showed, I am not forcing anyone to use the module..lol