How to use the nodemailer/lib/wellknown.Zimbra function in nodemailer

To help you get started, we’ve selected a few nodemailer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github onepiecejs / nodejs-cantas / services / mail.js View on Github external
var nodemailer = require("nodemailer");
var wellknown = require("nodemailer/lib/wellknown");
var settings = require("../settings");

/*
 * Add Zimbra to wellknown mail service so that Nodemailer recognizes it.
 */
wellknown.Zimbra = settings.mailServices.Zimbra;

function mailer() {}

/*
 * Send mail to recipients.
 *
 * All mail options, such as sender, recipients, subject and body, is contained
 * in options argument.
 *
 * Arguments:
 * - options.from: a string, address of sender
 * - options.to: a string or an array, addresses of recipients
 * - options.subject: a string, subject of the mail
 * - options.body: a string, body of mail that recipients can read
 * - options.html: a boolean, indicate whether the body is formatted in HTML
 */