Merge pull request #26667 from dex4er/nodemailer

Nodemailer: update to v4.6.7
This commit is contained in:
Nathan Shively-Sanders
2018-06-19 09:13:33 -07:00
committed by GitHub
3 changed files with 4 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ declare namespace JSONTransport {
interface Options extends MailOptions, TransportOptions {
jsonTransport: true;
skipEncoding?: boolean;
}
interface SentMessageInfo {

View File

@@ -165,7 +165,7 @@ declare class Mail extends EventEmitter {
verify(callback: (err: Error | null, success: true) => void): void;
verify(): Promise<true>;
use(step: string, plugin: Mail.PluginFunction): void; // TODO Plugin?
use(step: string, plugin: Mail.PluginFunction): this;
/** Sends an email using the preselected transport object */
sendMail(mailOptions: Mail.Options, callback: (err: Error | null, info: SentMessageInfo) => void): void;

View File

@@ -832,7 +832,8 @@ function stream_buffer_unix_newlines_test() {
function json_test() {
const transporter = nodemailer.createTransport({
jsonTransport: true
jsonTransport: true,
skipEncoding: true
});
transporter.sendMail({
from: 'sender@example.com',