nodemailer: JSONTransport.Options has skipEncoding

This commit is contained in:
Piotr Roszatycki
2018-06-19 15:07:11 +02:00
parent 2598e04e13
commit b02db5b0ee
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -15,6 +15,7 @@ declare namespace JSONTransport {
interface Options extends MailOptions, TransportOptions {
jsonTransport: true;
skipEncoding?: boolean;
}
interface SentMessageInfo {
+2 -1
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',