mikromail 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/MikroMail.js +2 -5
- package/lib/MikroMail.mjs +2 -2
- package/lib/SMTPClient.js +2 -5
- package/lib/SMTPClient.mjs +1 -1
- package/lib/{chunk-LKO73BCK.mjs → chunk-5JI6BRUL.mjs} +2 -5
- package/lib/{chunk-6FVSAIJD.mjs → chunk-TBZ7DVGE.mjs} +1 -1
- package/lib/index.js +2 -5
- package/lib/index.mjs +2 -2
- package/package.json +1 -1
package/lib/MikroMail.js
CHANGED
|
@@ -629,13 +629,10 @@ ${encodeQuotedPrintable(html || "")}\r
|
|
|
629
629
|
--${boundary}--\r
|
|
630
630
|
`;
|
|
631
631
|
}
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
return `${headers.join("\r\n")}\r
|
|
632
|
+
headers.push("Content-Type: text/html; charset=utf-8");
|
|
633
|
+
if (html) return `${headers.join("\r\n")}\r
|
|
635
634
|
\r
|
|
636
635
|
${html}`;
|
|
637
|
-
}
|
|
638
|
-
headers.push("Content-Type: text/plain; charset=utf-8");
|
|
639
636
|
return `${headers.join("\r\n")}\r
|
|
640
637
|
\r
|
|
641
638
|
${text || ""}`;
|
package/lib/MikroMail.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MikroMail
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TBZ7DVGE.mjs";
|
|
4
4
|
import "./chunk-YVXB6HCK.mjs";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-5JI6BRUL.mjs";
|
|
6
6
|
import "./chunk-47VXJTWV.mjs";
|
|
7
7
|
import "./chunk-UDLJWUFN.mjs";
|
|
8
8
|
export {
|
package/lib/SMTPClient.js
CHANGED
|
@@ -485,13 +485,10 @@ ${encodeQuotedPrintable(html || "")}\r
|
|
|
485
485
|
--${boundary}--\r
|
|
486
486
|
`;
|
|
487
487
|
}
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
return `${headers.join("\r\n")}\r
|
|
488
|
+
headers.push("Content-Type: text/html; charset=utf-8");
|
|
489
|
+
if (html) return `${headers.join("\r\n")}\r
|
|
491
490
|
\r
|
|
492
491
|
${html}`;
|
|
493
|
-
}
|
|
494
|
-
headers.push("Content-Type: text/plain; charset=utf-8");
|
|
495
492
|
return `${headers.join("\r\n")}\r
|
|
496
493
|
\r
|
|
497
494
|
${text || ""}`;
|
package/lib/SMTPClient.mjs
CHANGED
|
@@ -394,13 +394,10 @@ ${encodeQuotedPrintable(html || "")}\r
|
|
|
394
394
|
--${boundary}--\r
|
|
395
395
|
`;
|
|
396
396
|
}
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
return `${headers.join("\r\n")}\r
|
|
397
|
+
headers.push("Content-Type: text/html; charset=utf-8");
|
|
398
|
+
if (html) return `${headers.join("\r\n")}\r
|
|
400
399
|
\r
|
|
401
400
|
${html}`;
|
|
402
|
-
}
|
|
403
|
-
headers.push("Content-Type: text/plain; charset=utf-8");
|
|
404
401
|
return `${headers.join("\r\n")}\r
|
|
405
402
|
\r
|
|
406
403
|
${text || ""}`;
|
package/lib/index.js
CHANGED
|
@@ -629,13 +629,10 @@ ${encodeQuotedPrintable(html || "")}\r
|
|
|
629
629
|
--${boundary}--\r
|
|
630
630
|
`;
|
|
631
631
|
}
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
return `${headers.join("\r\n")}\r
|
|
632
|
+
headers.push("Content-Type: text/html; charset=utf-8");
|
|
633
|
+
if (html) return `${headers.join("\r\n")}\r
|
|
635
634
|
\r
|
|
636
635
|
${html}`;
|
|
637
|
-
}
|
|
638
|
-
headers.push("Content-Type: text/plain; charset=utf-8");
|
|
639
636
|
return `${headers.join("\r\n")}\r
|
|
640
637
|
\r
|
|
641
638
|
${text || ""}`;
|
package/lib/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MikroMail
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TBZ7DVGE.mjs";
|
|
4
4
|
import "./chunk-YVXB6HCK.mjs";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-5JI6BRUL.mjs";
|
|
6
6
|
import "./chunk-47VXJTWV.mjs";
|
|
7
7
|
import "./chunk-UDLJWUFN.mjs";
|
|
8
8
|
export {
|
package/package.json
CHANGED