emailjs 4.0.2 → 5.0.0
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/README.md +215 -247
- package/dist/address.d.ts +6 -0
- package/dist/address.js +183 -0
- package/dist/address.js.map +1 -0
- package/dist/address.test.d.ts +1 -0
- package/dist/address.test.js +120 -0
- package/dist/address.test.js.map +1 -0
- package/dist/auth.integration.test.d.ts +1 -0
- package/dist/auth.integration.test.js +137 -0
- package/dist/auth.integration.test.js.map +1 -0
- package/dist/client.d.ts +39 -0
- package/dist/client.integration.test.d.ts +1 -0
- package/dist/client.integration.test.js +198 -0
- package/dist/client.integration.test.js.map +1 -0
- package/dist/client.js +196 -0
- package/dist/client.js.map +1 -0
- package/dist/client.test.d.ts +1 -0
- package/dist/client.test.js +260 -0
- package/dist/client.test.js.map +1 -0
- package/dist/connection.commands.integration.test.d.ts +1 -0
- package/dist/connection.commands.integration.test.js +79 -0
- package/dist/connection.commands.integration.test.js.map +1 -0
- package/dist/connection.d.ts +83 -0
- package/dist/connection.errors.integration.test.d.ts +1 -0
- package/dist/connection.errors.integration.test.js +186 -0
- package/dist/connection.errors.integration.test.js.map +1 -0
- package/dist/connection.greylist.integration.test.d.ts +1 -0
- package/dist/connection.greylist.integration.test.js +53 -0
- package/dist/connection.greylist.integration.test.js.map +1 -0
- package/dist/connection.integration.test.d.ts +1 -0
- package/dist/connection.integration.test.js +223 -0
- package/dist/connection.integration.test.js.map +1 -0
- package/dist/connection.js +491 -0
- package/dist/connection.js.map +1 -0
- package/dist/connection.test.d.ts +1 -0
- package/dist/connection.test.js +50 -0
- package/dist/connection.test.js.map +1 -0
- package/dist/date.d.ts +3 -0
- package/dist/date.js +26 -0
- package/dist/date.js.map +1 -0
- package/dist/date.test.d.ts +1 -0
- package/dist/date.test.js +26 -0
- package/dist/date.test.js.map +1 -0
- package/dist/error.d.ts +20 -0
- package/dist/error.js +31 -0
- package/dist/error.js.map +1 -0
- package/dist/error.test.d.ts +1 -0
- package/dist/error.test.js +23 -0
- package/dist/error.test.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/message.d.ts +71 -0
- package/dist/message.integration.test.d.ts +1 -0
- package/dist/message.integration.test.js +401 -0
- package/dist/message.integration.test.js.map +1 -0
- package/dist/message.js +456 -0
- package/dist/message.js.map +1 -0
- package/dist/message.test.d.ts +1 -0
- package/dist/message.test.js +258 -0
- package/dist/message.test.js.map +1 -0
- package/dist/mime.d.ts +2 -0
- package/dist/mime.js +145 -0
- package/dist/mime.js.map +1 -0
- package/dist/mime.test.d.ts +1 -0
- package/dist/mime.test.js +76 -0
- package/dist/mime.test.js.map +1 -0
- package/dist/response.d.ts +6 -0
- package/dist/response.js +93 -0
- package/dist/response.js.map +1 -0
- package/dist/response.test.d.ts +1 -0
- package/dist/response.test.js +177 -0
- package/dist/response.test.js.map +1 -0
- package/package.json +30 -28
- package/email.js +0 -2126
- package/email.ts +0 -8
- package/smtp/address.ts +0 -237
- package/smtp/client.ts +0 -365
- package/smtp/connection.ts +0 -937
- package/smtp/date.ts +0 -51
- package/smtp/error.ts +0 -57
- package/smtp/message.ts +0 -774
- package/smtp/mime.ts +0 -234
- package/smtp/response.ts +0 -112
package/dist/error.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const SMTPErrorStates: {
|
|
2
|
+
readonly COULDNOTCONNECT: 1;
|
|
3
|
+
readonly BADRESPONSE: 2;
|
|
4
|
+
readonly AUTHFAILED: 3;
|
|
5
|
+
readonly TIMEDOUT: 4;
|
|
6
|
+
readonly ERROR: 5;
|
|
7
|
+
readonly NOCONNECTION: 6;
|
|
8
|
+
readonly AUTHNOTSUPPORTED: 7;
|
|
9
|
+
readonly CONNECTIONCLOSED: 8;
|
|
10
|
+
readonly CONNECTIONENDED: 9;
|
|
11
|
+
readonly CONNECTIONAUTH: 10;
|
|
12
|
+
};
|
|
13
|
+
export type SMTPErrorState = (typeof SMTPErrorStates)[keyof typeof SMTPErrorStates];
|
|
14
|
+
export declare class SMTPError extends Error {
|
|
15
|
+
code: SMTPErrorState | null;
|
|
16
|
+
smtp: unknown;
|
|
17
|
+
previous: Error | null;
|
|
18
|
+
protected constructor(message: string);
|
|
19
|
+
static create(message: string, code: SMTPErrorState, error?: Error | null, smtp?: unknown): SMTPError;
|
|
20
|
+
}
|
package/dist/error.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export const SMTPErrorStates = {
|
|
2
|
+
COULDNOTCONNECT: 1,
|
|
3
|
+
BADRESPONSE: 2,
|
|
4
|
+
AUTHFAILED: 3,
|
|
5
|
+
TIMEDOUT: 4,
|
|
6
|
+
ERROR: 5,
|
|
7
|
+
NOCONNECTION: 6,
|
|
8
|
+
AUTHNOTSUPPORTED: 7,
|
|
9
|
+
CONNECTIONCLOSED: 8,
|
|
10
|
+
CONNECTIONENDED: 9,
|
|
11
|
+
CONNECTIONAUTH: 10,
|
|
12
|
+
};
|
|
13
|
+
export class SMTPError extends Error {
|
|
14
|
+
code = null;
|
|
15
|
+
smtp = null;
|
|
16
|
+
previous = null;
|
|
17
|
+
constructor(message) {
|
|
18
|
+
super(message);
|
|
19
|
+
}
|
|
20
|
+
static create(message, code, error, smtp) {
|
|
21
|
+
const msg = error?.message ? `${message} (${error.message})` : message;
|
|
22
|
+
const err = new SMTPError(msg);
|
|
23
|
+
err.code = code;
|
|
24
|
+
err.smtp = smtp;
|
|
25
|
+
if (error) {
|
|
26
|
+
err.previous = error;
|
|
27
|
+
}
|
|
28
|
+
return err;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.js","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC9B,eAAe,EAAE,CAAC;IAClB,WAAW,EAAE,CAAC;IACd,UAAU,EAAE,CAAC;IACb,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE,CAAC;IACR,YAAY,EAAE,CAAC;IACf,gBAAgB,EAAE,CAAC;IACnB,gBAAgB,EAAE,CAAC;IACnB,eAAe,EAAE,CAAC;IAClB,cAAc,EAAE,EAAE;CACT,CAAA;AAKV,MAAM,OAAO,SAAU,SAAQ,KAAK;IAC5B,IAAI,GAA0B,IAAI,CAAA;IAClC,IAAI,GAAY,IAAI,CAAA;IACpB,QAAQ,GAAiB,IAAI,CAAA;IAEpC,YAAsB,OAAe;QACpC,KAAK,CAAC,OAAO,CAAC,CAAA;IACf,CAAC;IAEM,MAAM,CAAC,MAAM,CACnB,OAAe,EACf,IAAoB,EACpB,KAAoB,EACpB,IAAc;QAEd,MAAM,GAAG,GAAG,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,KAAK,KAAK,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,OAAO,CAAA;QACtE,MAAM,GAAG,GAAG,IAAI,SAAS,CAAC,GAAG,CAAC,CAAA;QAE9B,GAAG,CAAC,IAAI,GAAG,IAAI,CAAA;QACf,GAAG,CAAC,IAAI,GAAG,IAAI,CAAA;QAEf,IAAI,KAAK,EAAE,CAAC;YACX,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAA;QACrB,CAAC;QAED,OAAO,GAAG,CAAA;IACX,CAAC;CACD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { describe, it, expect } from 'vitest';
|
|
2
|
+
import { SMTPError, SMTPErrorStates } from './error.js';
|
|
3
|
+
describe('SMTPError', () => {
|
|
4
|
+
it('should create an error with message and code', () => {
|
|
5
|
+
const err = SMTPError.create('boom', SMTPErrorStates.ERROR);
|
|
6
|
+
expect(err).toBeInstanceOf(SMTPError);
|
|
7
|
+
expect(err.message).toBe('boom');
|
|
8
|
+
expect(err.code).toBe(SMTPErrorStates.ERROR);
|
|
9
|
+
expect(err.previous).toBeNull();
|
|
10
|
+
});
|
|
11
|
+
it('should include previous error message', () => {
|
|
12
|
+
const prev = new Error('original sin');
|
|
13
|
+
const err = SMTPError.create('fail', SMTPErrorStates.AUTHFAILED, prev);
|
|
14
|
+
expect(err.message).toBe('fail (original sin)');
|
|
15
|
+
expect(err.previous).toBe(prev);
|
|
16
|
+
});
|
|
17
|
+
it('should attach smtp context', () => {
|
|
18
|
+
const context = { foo: 'bar' };
|
|
19
|
+
const err = SMTPError.create('fail', SMTPErrorStates.TIMEDOUT, null, context);
|
|
20
|
+
expect(err.smtp).toBe(context);
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=error.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.test.js","sourceRoot":"","sources":["../src/error.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAEvD,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IAC1B,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACvD,MAAM,GAAG,GAAG,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,KAAK,CAAC,CAAA;QAC3D,MAAM,CAAC,GAAG,CAAC,CAAC,cAAc,CAAC,SAAS,CAAC,CAAA;QACrC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAChC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,CAAA;QAC5C,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAA;IAChC,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,uCAAuC,EAAE,GAAG,EAAE;QAChD,MAAM,IAAI,GAAG,IAAI,KAAK,CAAC,cAAc,CAAC,CAAA;QACtC,MAAM,GAAG,GAAG,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;QACtE,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA;QAC/C,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,4BAA4B,EAAE,GAAG,EAAE;QACrC,MAAM,OAAO,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,CAAA;QAC9B,MAAM,GAAG,GAAG,SAAS,CAAC,MAAM,CAC3B,MAAM,EACN,eAAe,CAAC,QAAQ,EACxB,IAAI,EACJ,OAAO,CACP,CAAA;QACD,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAC/B,CAAC,CAAC,CAAA;AACH,CAAC,CAAC,CAAA"}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './address.js';
|
|
2
|
+
export * from './client.js';
|
|
3
|
+
export * from './connection.js';
|
|
4
|
+
export * from './date.js';
|
|
5
|
+
export * from './error.js';
|
|
6
|
+
export * from './message.js';
|
|
7
|
+
export * from './mime.js';
|
|
8
|
+
export * from './response.js';
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { PathLike } from 'fs';
|
|
2
|
+
import { Stream } from 'stream';
|
|
3
|
+
import type { Readable } from 'stream';
|
|
4
|
+
export declare const MIMECHUNK = 76;
|
|
5
|
+
export declare const MIME64CHUNK: number;
|
|
6
|
+
export declare const BUFFERSIZE: number;
|
|
7
|
+
export interface MessageAttachmentHeaders {
|
|
8
|
+
[index: string]: string | undefined;
|
|
9
|
+
'content-type'?: string;
|
|
10
|
+
'content-transfer-encoding'?: BufferEncoding | '7bit' | '8bit';
|
|
11
|
+
'content-disposition'?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface MessageAttachment {
|
|
14
|
+
[index: string]: string | boolean | MessageAttachment | MessageAttachment[] | MessageAttachmentHeaders | Readable | PathLike | undefined;
|
|
15
|
+
name?: string;
|
|
16
|
+
headers?: MessageAttachmentHeaders;
|
|
17
|
+
inline?: boolean;
|
|
18
|
+
alternative?: MessageAttachment | boolean;
|
|
19
|
+
related?: MessageAttachment[];
|
|
20
|
+
data?: string;
|
|
21
|
+
encoded?: boolean;
|
|
22
|
+
stream?: Readable;
|
|
23
|
+
path?: PathLike;
|
|
24
|
+
type?: string;
|
|
25
|
+
charset?: string;
|
|
26
|
+
method?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface MessageHeaders {
|
|
29
|
+
[index: string]: boolean | string | string[] | null | undefined | MessageAttachment | MessageAttachment[];
|
|
30
|
+
'content-type'?: string;
|
|
31
|
+
'message-id'?: string;
|
|
32
|
+
'return-path'?: string | null;
|
|
33
|
+
date?: string;
|
|
34
|
+
from: string | string[];
|
|
35
|
+
to: string | string[];
|
|
36
|
+
cc?: string | string[];
|
|
37
|
+
bcc?: string | string[];
|
|
38
|
+
subject: string;
|
|
39
|
+
text?: string | null;
|
|
40
|
+
attachment?: MessageAttachment | MessageAttachment[];
|
|
41
|
+
}
|
|
42
|
+
export declare class Message {
|
|
43
|
+
readonly attachments: MessageAttachment[];
|
|
44
|
+
readonly header: Partial<MessageHeaders>;
|
|
45
|
+
readonly content: string;
|
|
46
|
+
readonly text?: string;
|
|
47
|
+
alternative: MessageAttachment | null;
|
|
48
|
+
constructor(headers: Partial<MessageHeaders>);
|
|
49
|
+
attach(options: MessageAttachment): this;
|
|
50
|
+
checkValidity(): {
|
|
51
|
+
isValid: boolean;
|
|
52
|
+
validationError: string | undefined;
|
|
53
|
+
};
|
|
54
|
+
valid(callback: (isValid: boolean, invalidReason?: string) => void): void;
|
|
55
|
+
stream(): MessageStream;
|
|
56
|
+
read(callback: (err: Error | null, buffer: string) => void): void;
|
|
57
|
+
readAsync(): Promise<string>;
|
|
58
|
+
}
|
|
59
|
+
declare class MessageStream extends Stream {
|
|
60
|
+
private message;
|
|
61
|
+
readable: boolean;
|
|
62
|
+
paused: boolean;
|
|
63
|
+
buffer: Buffer | null;
|
|
64
|
+
bufferIndex: number;
|
|
65
|
+
constructor(message: Message);
|
|
66
|
+
pause(): void;
|
|
67
|
+
resume(): void;
|
|
68
|
+
destroy(): void;
|
|
69
|
+
destroySoon(): void;
|
|
70
|
+
}
|
|
71
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
import { createReadStream, readFileSync } from 'fs';
|
|
2
|
+
import { URL } from 'url';
|
|
3
|
+
import { resolve } from 'path';
|
|
4
|
+
import { describe, it, expect, beforeAll, afterAll } from 'vitest';
|
|
5
|
+
import { simpleParser } from 'mailparser';
|
|
6
|
+
import { SMTPServer } from 'smtp-server';
|
|
7
|
+
import { SMTPClient, Message } from './index.js';
|
|
8
|
+
// Resolve paths to fixtures relative to the project root
|
|
9
|
+
const FIXTURES_DIR = resolve('test/attachments');
|
|
10
|
+
// Generate a large text fixture (~200KB) instead of reading the 5MB file
|
|
11
|
+
// This is sufficient to test chunking/buffering without slowing down tests
|
|
12
|
+
const textFixture = '0123456789'.repeat(20 * 1024);
|
|
13
|
+
const htmlFixtureUrl = new URL(`file://${resolve(FIXTURES_DIR, 'smtp.html')}`);
|
|
14
|
+
const htmlFixture = readFileSync(htmlFixtureUrl, 'utf-8');
|
|
15
|
+
const pdfFixtureUrl = new URL(`file://${resolve(FIXTURES_DIR, 'smtp.pdf')}`);
|
|
16
|
+
const pdfFixture = readFileSync(pdfFixtureUrl, 'base64');
|
|
17
|
+
const tarFixtureUrl = new URL(`file://${resolve(FIXTURES_DIR, 'postfix-2.8.7.tar.gz')}`);
|
|
18
|
+
const tarFixture = readFileSync(tarFixtureUrl, 'base64');
|
|
19
|
+
const port = 5559; // Increment port
|
|
20
|
+
const parseMap = new Map();
|
|
21
|
+
// Create server instance
|
|
22
|
+
const server = new SMTPServer({
|
|
23
|
+
secure: false, // Use STARTTLS
|
|
24
|
+
onAuth(auth, _session, callback) {
|
|
25
|
+
if (auth.username == 'pooh' && auth.password == 'honey') {
|
|
26
|
+
callback(null, { user: 'pooh' });
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
return callback(new Error('invalid user / pass'));
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
async onData(stream, _session, callback) {
|
|
33
|
+
try {
|
|
34
|
+
const mail = (await simpleParser(stream, {
|
|
35
|
+
skipHtmlToText: true,
|
|
36
|
+
skipTextToHtml: true,
|
|
37
|
+
skipImageLinks: true,
|
|
38
|
+
}));
|
|
39
|
+
parseMap.set(mail.subject, mail);
|
|
40
|
+
callback();
|
|
41
|
+
}
|
|
42
|
+
catch (err) {
|
|
43
|
+
callback(err);
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
// Client instance
|
|
48
|
+
const client = new SMTPClient({
|
|
49
|
+
port,
|
|
50
|
+
user: 'pooh',
|
|
51
|
+
password: 'honey',
|
|
52
|
+
host: '127.0.0.1',
|
|
53
|
+
// ssl default is false
|
|
54
|
+
tls: {
|
|
55
|
+
rejectUnauthorized: false,
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
async function send(headers) {
|
|
59
|
+
return new Promise((resolve, reject) => {
|
|
60
|
+
try {
|
|
61
|
+
client.send(new Message(headers), (err) => {
|
|
62
|
+
if (err) {
|
|
63
|
+
reject(err);
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
const start = Date.now();
|
|
67
|
+
const checkMap = () => {
|
|
68
|
+
const mail = parseMap.get(headers.subject);
|
|
69
|
+
if (mail) {
|
|
70
|
+
resolve(mail);
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
if (Date.now() - start > 2000) {
|
|
74
|
+
reject(new Error('Timed out waiting for email to be parsed'));
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
setTimeout(checkMap, 50);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
checkMap();
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
catch (e) {
|
|
86
|
+
reject(e);
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
describe('Message Integration', () => {
|
|
91
|
+
beforeAll(async () => {
|
|
92
|
+
return new Promise((resolve) => {
|
|
93
|
+
server.listen(port, '127.0.0.1', () => {
|
|
94
|
+
client.smtp['sock']?.on('error', () => { });
|
|
95
|
+
resolve();
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
afterAll(async () => {
|
|
100
|
+
return new Promise((resolve) => {
|
|
101
|
+
// Close client connection first
|
|
102
|
+
client.smtp.close();
|
|
103
|
+
server.close(() => resolve());
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
it('simple text message', async () => {
|
|
107
|
+
const msg = {
|
|
108
|
+
subject: 'this is a test TEXT message from emailjs',
|
|
109
|
+
from: 'zelda@gmail.com',
|
|
110
|
+
to: 'gannon@gmail.com',
|
|
111
|
+
cc: 'gannon@gmail.com',
|
|
112
|
+
bcc: 'gannon@gmail.com',
|
|
113
|
+
text: 'hello friend, i hope this message finds you well.',
|
|
114
|
+
'message-id': 'this is a special id',
|
|
115
|
+
};
|
|
116
|
+
const mail = await send(msg);
|
|
117
|
+
expect(mail.text).toBe(msg.text + '\n\n\n');
|
|
118
|
+
expect(mail.subject).toBe(msg.subject);
|
|
119
|
+
expect(mail.from?.text).toBe(msg.from);
|
|
120
|
+
expect(mail.to?.text).toBe(msg.to);
|
|
121
|
+
expect(mail.messageId).toBe('<' + msg['message-id'] + '>');
|
|
122
|
+
});
|
|
123
|
+
it('null text message', async () => {
|
|
124
|
+
const msg = {
|
|
125
|
+
subject: 'this is a test TEXT message from emailjs',
|
|
126
|
+
from: 'zelda@gmail.com',
|
|
127
|
+
to: 'gannon@gmail.com',
|
|
128
|
+
text: null,
|
|
129
|
+
'message-id': 'this is a special id',
|
|
130
|
+
};
|
|
131
|
+
const mail = await send(msg);
|
|
132
|
+
expect(mail.text).toBe('\n\n\n');
|
|
133
|
+
});
|
|
134
|
+
it('empty text message', async () => {
|
|
135
|
+
const msg = {
|
|
136
|
+
subject: 'this is a test TEXT message from emailjs',
|
|
137
|
+
from: 'zelda@gmail.com',
|
|
138
|
+
to: 'gannon@gmail.com',
|
|
139
|
+
text: '',
|
|
140
|
+
'message-id': 'this is a special id',
|
|
141
|
+
};
|
|
142
|
+
const mail = await send(msg);
|
|
143
|
+
expect(mail.text).toBe('\n\n\n');
|
|
144
|
+
});
|
|
145
|
+
it('simple unicode text message', async () => {
|
|
146
|
+
const msg = {
|
|
147
|
+
subject: 'this ✓ is a test ✓ TEXT message from emailjs',
|
|
148
|
+
from: 'zelda✓ <zelda@gmail.com>',
|
|
149
|
+
to: 'gannon✓ <gannon@gmail.com>',
|
|
150
|
+
text: 'hello ✓ friend, i hope this message finds you well.',
|
|
151
|
+
};
|
|
152
|
+
const mail = await send(msg);
|
|
153
|
+
expect(mail.text).toBe(msg.text + '\n\n\n');
|
|
154
|
+
expect(mail.subject).toBe(msg.subject);
|
|
155
|
+
expect(mail.from?.text).toBe(msg.from.replace('zelda✓', '"zelda✓"'));
|
|
156
|
+
expect(mail.to?.text).toBe(msg.to.replace('gannon✓', '"gannon✓"'));
|
|
157
|
+
});
|
|
158
|
+
it('very large text message', async () => {
|
|
159
|
+
const msg = {
|
|
160
|
+
subject: 'this is a test TEXT message from emailjs',
|
|
161
|
+
from: 'ninjas@gmail.com',
|
|
162
|
+
to: 'pirates@gmail.com',
|
|
163
|
+
text: textFixture,
|
|
164
|
+
};
|
|
165
|
+
const mail = await send(msg);
|
|
166
|
+
expect(mail.text).toBe(msg.text.replace(/\r/g, '') + '\n\n\n');
|
|
167
|
+
expect(mail.subject).toBe(msg.subject);
|
|
168
|
+
expect(mail.from?.text).toBe(msg.from);
|
|
169
|
+
expect(mail.to?.text).toBe(msg.to);
|
|
170
|
+
});
|
|
171
|
+
it('very large text data message', async () => {
|
|
172
|
+
const text = '<html><body><pre>' + textFixture + '</pre></body></html>';
|
|
173
|
+
const msg = {
|
|
174
|
+
subject: 'this is a test TEXT+DATA message from emailjs',
|
|
175
|
+
from: 'lobsters@gmail.com',
|
|
176
|
+
to: 'lizards@gmail.com',
|
|
177
|
+
text: 'hello friend if you are seeing this, you can not view html emails. it is attached inline.',
|
|
178
|
+
attachment: {
|
|
179
|
+
data: text,
|
|
180
|
+
alternative: true,
|
|
181
|
+
},
|
|
182
|
+
};
|
|
183
|
+
const mail = await send(msg);
|
|
184
|
+
expect(mail.html).toBe(text.replace(/\r/g, ''));
|
|
185
|
+
expect(mail.text).toBe(msg.text + '\n');
|
|
186
|
+
expect(mail.subject).toBe(msg.subject);
|
|
187
|
+
expect(mail.from?.text).toBe(msg.from);
|
|
188
|
+
expect(mail.to?.text).toBe(msg.to);
|
|
189
|
+
});
|
|
190
|
+
it('html data message', async () => {
|
|
191
|
+
const msg = {
|
|
192
|
+
subject: 'this is a test TEXT+HTML+DATA message from emailjs',
|
|
193
|
+
from: 'obama@gmail.com',
|
|
194
|
+
to: 'mitt@gmail.com',
|
|
195
|
+
attachment: {
|
|
196
|
+
data: htmlFixture,
|
|
197
|
+
alternative: true,
|
|
198
|
+
},
|
|
199
|
+
};
|
|
200
|
+
const mail = await send(msg);
|
|
201
|
+
expect(mail.html).toBe(htmlFixture.replace(/\r/g, ''));
|
|
202
|
+
expect(mail.text).toBe('\n');
|
|
203
|
+
expect(mail.subject).toBe(msg.subject);
|
|
204
|
+
expect(mail.from?.text).toBe(msg.from);
|
|
205
|
+
expect(mail.to?.text).toBe(msg.to);
|
|
206
|
+
});
|
|
207
|
+
it('html file message', async () => {
|
|
208
|
+
const msg = {
|
|
209
|
+
subject: 'this is a test TEXT+HTML+FILE message from emailjs',
|
|
210
|
+
from: 'thomas@gmail.com',
|
|
211
|
+
to: 'nikolas@gmail.com',
|
|
212
|
+
attachment: {
|
|
213
|
+
path: htmlFixtureUrl,
|
|
214
|
+
alternative: true,
|
|
215
|
+
},
|
|
216
|
+
};
|
|
217
|
+
const mail = await send(msg);
|
|
218
|
+
expect(mail.html).toBe(htmlFixture.replace(/\r/g, ''));
|
|
219
|
+
expect(mail.text).toBe('\n');
|
|
220
|
+
expect(mail.subject).toBe(msg.subject);
|
|
221
|
+
expect(mail.from?.text).toBe(msg.from);
|
|
222
|
+
expect(mail.to?.text).toBe(msg.to);
|
|
223
|
+
});
|
|
224
|
+
it('html with image embed message', async () => {
|
|
225
|
+
const htmlFixture2Url = new URL(`file://${resolve(FIXTURES_DIR, 'smtp2.html')}`);
|
|
226
|
+
const imageFixtureUrl = new URL(`file://${resolve(FIXTURES_DIR, 'smtp.gif')}`);
|
|
227
|
+
const msg = {
|
|
228
|
+
subject: 'this is a test TEXT+HTML+IMAGE message from emailjs',
|
|
229
|
+
from: 'ninja@gmail.com',
|
|
230
|
+
to: 'pirate@gmail.com',
|
|
231
|
+
attachment: {
|
|
232
|
+
path: htmlFixture2Url,
|
|
233
|
+
alternative: true,
|
|
234
|
+
related: [
|
|
235
|
+
{
|
|
236
|
+
path: imageFixtureUrl,
|
|
237
|
+
type: 'image/gif',
|
|
238
|
+
name: 'smtp-diagram.gif',
|
|
239
|
+
headers: { 'Content-ID': '<smtp-diagram@local>' },
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
},
|
|
243
|
+
};
|
|
244
|
+
const mail = await send(msg);
|
|
245
|
+
if (mail.attachments) {
|
|
246
|
+
expect(mail.attachments[0].content.toString('base64')).toBe(readFileSync(imageFixtureUrl, 'base64'));
|
|
247
|
+
}
|
|
248
|
+
else {
|
|
249
|
+
throw new Error('Attachments missing');
|
|
250
|
+
}
|
|
251
|
+
expect(mail.html).toBe(readFileSync(htmlFixture2Url, 'utf-8').replace(/\r/g, ''));
|
|
252
|
+
expect(mail.text).toBe('\n');
|
|
253
|
+
expect(mail.subject).toBe(msg.subject);
|
|
254
|
+
expect(mail.from?.text).toBe(msg.from);
|
|
255
|
+
expect(mail.to?.text).toBe(msg.to);
|
|
256
|
+
});
|
|
257
|
+
it('html data and attachment message', async () => {
|
|
258
|
+
const msg = {
|
|
259
|
+
subject: 'this is a test TEXT+HTML+FILE message from emailjs',
|
|
260
|
+
from: 'thomas@gmail.com',
|
|
261
|
+
to: 'nikolas@gmail.com',
|
|
262
|
+
attachment: [
|
|
263
|
+
{
|
|
264
|
+
path: htmlFixtureUrl,
|
|
265
|
+
alternative: true,
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
path: new URL(`file://${resolve(FIXTURES_DIR, 'smtp.gif')}`),
|
|
269
|
+
},
|
|
270
|
+
],
|
|
271
|
+
};
|
|
272
|
+
const mail = await send(msg);
|
|
273
|
+
expect(mail.html).toBe(htmlFixture.replace(/\r/g, ''));
|
|
274
|
+
expect(mail.text).toBe('\n');
|
|
275
|
+
expect(mail.subject).toBe(msg.subject);
|
|
276
|
+
expect(mail.from?.text).toBe(msg.from);
|
|
277
|
+
expect(mail.to?.text).toBe(msg.to);
|
|
278
|
+
});
|
|
279
|
+
it('attachment message', async () => {
|
|
280
|
+
const msg = {
|
|
281
|
+
subject: 'this is a test TEXT+ATTACHMENT message from emailjs',
|
|
282
|
+
from: 'washing@gmail.com',
|
|
283
|
+
to: 'lincoln@gmail.com',
|
|
284
|
+
text: 'hello friend, i hope this message and pdf finds you well.',
|
|
285
|
+
attachment: {
|
|
286
|
+
path: pdfFixtureUrl,
|
|
287
|
+
type: 'application/pdf',
|
|
288
|
+
name: 'smtp-info.pdf',
|
|
289
|
+
},
|
|
290
|
+
};
|
|
291
|
+
const mail = await send(msg);
|
|
292
|
+
if (mail.attachments) {
|
|
293
|
+
expect(mail.attachments[0].content.toString('base64')).toBe(pdfFixture);
|
|
294
|
+
}
|
|
295
|
+
else {
|
|
296
|
+
throw new Error('Attachments missing');
|
|
297
|
+
}
|
|
298
|
+
expect(mail.text).toBe(msg.text + '\n');
|
|
299
|
+
expect(mail.subject).toBe(msg.subject);
|
|
300
|
+
expect(mail.from?.text).toBe(msg.from);
|
|
301
|
+
expect(mail.to?.text).toBe(msg.to);
|
|
302
|
+
});
|
|
303
|
+
it('attachment sent with unicode filename message', async () => {
|
|
304
|
+
const msg = {
|
|
305
|
+
subject: 'this is a test TEXT+ATTACHMENT message from emailjs',
|
|
306
|
+
from: 'washing@gmail.com',
|
|
307
|
+
to: 'lincoln@gmail.com',
|
|
308
|
+
text: 'hello friend, i hope this message and pdf finds you well.',
|
|
309
|
+
attachment: {
|
|
310
|
+
path: pdfFixtureUrl,
|
|
311
|
+
type: 'application/pdf',
|
|
312
|
+
name: 'smtp-✓-info.pdf',
|
|
313
|
+
},
|
|
314
|
+
};
|
|
315
|
+
const mail = await send(msg);
|
|
316
|
+
if (mail.attachments) {
|
|
317
|
+
expect(mail.attachments[0].content.toString('base64')).toBe(pdfFixture);
|
|
318
|
+
expect(mail.attachments[0].filename).toBe('smtp-✓-info.pdf');
|
|
319
|
+
}
|
|
320
|
+
else {
|
|
321
|
+
throw new Error('Attachments missing');
|
|
322
|
+
}
|
|
323
|
+
expect(mail.text).toBe(msg.text + '\n');
|
|
324
|
+
expect(mail.subject).toBe(msg.subject);
|
|
325
|
+
expect(mail.from?.text).toBe(msg.from);
|
|
326
|
+
expect(mail.to?.text).toBe(msg.to);
|
|
327
|
+
});
|
|
328
|
+
it('attachments message', async () => {
|
|
329
|
+
const msg = {
|
|
330
|
+
subject: 'this is a test TEXT+2+ATTACHMENTS message from emailjs',
|
|
331
|
+
from: 'sergey@gmail.com',
|
|
332
|
+
to: 'jobs@gmail.com',
|
|
333
|
+
text: 'hello friend, i hope this message and attachments finds you well.',
|
|
334
|
+
attachment: [
|
|
335
|
+
{
|
|
336
|
+
path: pdfFixtureUrl,
|
|
337
|
+
type: 'application/pdf',
|
|
338
|
+
name: 'smtp-info.pdf',
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
path: tarFixtureUrl,
|
|
342
|
+
type: 'application/tar-gz',
|
|
343
|
+
name: 'postfix.source.2.8.7.tar.gz',
|
|
344
|
+
},
|
|
345
|
+
],
|
|
346
|
+
};
|
|
347
|
+
const mail = await send(msg);
|
|
348
|
+
if (mail.attachments) {
|
|
349
|
+
expect(mail.attachments[0].content.toString('base64')).toBe(pdfFixture);
|
|
350
|
+
expect(mail.attachments[1].content.toString('base64')).toBe(tarFixture);
|
|
351
|
+
}
|
|
352
|
+
else {
|
|
353
|
+
throw new Error('Attachments missing');
|
|
354
|
+
}
|
|
355
|
+
expect(mail.text).toBe(msg.text + '\n');
|
|
356
|
+
expect(mail.subject).toBe(msg.subject);
|
|
357
|
+
expect(mail.from?.text).toBe(msg.from);
|
|
358
|
+
expect(mail.to?.text).toBe(msg.to);
|
|
359
|
+
});
|
|
360
|
+
it('streams message', async () => {
|
|
361
|
+
const msg = {
|
|
362
|
+
subject: 'this is a test TEXT+2+STREAMED+ATTACHMENTS message from emailjs',
|
|
363
|
+
from: 'stanford@gmail.com',
|
|
364
|
+
to: 'mit@gmail.com',
|
|
365
|
+
text: 'hello friend, i hope this message and streamed attachments finds you well.',
|
|
366
|
+
attachment: [
|
|
367
|
+
{
|
|
368
|
+
stream: createReadStream(pdfFixtureUrl),
|
|
369
|
+
type: 'application/pdf',
|
|
370
|
+
name: 'smtp-info.pdf',
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
stream: createReadStream(tarFixtureUrl),
|
|
374
|
+
type: 'application/x-gzip',
|
|
375
|
+
name: 'postfix.source.2.8.7.tar.gz',
|
|
376
|
+
},
|
|
377
|
+
],
|
|
378
|
+
};
|
|
379
|
+
// ensure streams are paused (mimic behavior in old tests or usage)
|
|
380
|
+
if (Array.isArray(msg.attachment)) {
|
|
381
|
+
for (const att of msg.attachment) {
|
|
382
|
+
if (att.stream) {
|
|
383
|
+
att.stream.pause();
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
const mail = await send(msg);
|
|
388
|
+
if (mail.attachments) {
|
|
389
|
+
expect(mail.attachments[0].content.toString('base64')).toBe(pdfFixture);
|
|
390
|
+
expect(mail.attachments[1].content.toString('base64')).toBe(tarFixture);
|
|
391
|
+
}
|
|
392
|
+
else {
|
|
393
|
+
throw new Error('Attachments missing');
|
|
394
|
+
}
|
|
395
|
+
expect(mail.text).toBe(msg.text + '\n');
|
|
396
|
+
expect(mail.subject).toBe(msg.subject);
|
|
397
|
+
expect(mail.from?.text).toBe(msg.from);
|
|
398
|
+
expect(mail.to?.text).toBe(msg.to);
|
|
399
|
+
});
|
|
400
|
+
});
|
|
401
|
+
//# sourceMappingURL=message.integration.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.integration.test.js","sourceRoot":"","sources":["../src/message.integration.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,IAAI,CAAA;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAE9B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM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