emailjs 5.0.3 → 5.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/README.md CHANGED
@@ -10,19 +10,19 @@ SMTP server.
10
10
 
11
11
  ## What's to expect from emailjs? 🚀
12
12
 
13
- * **SSL and TLS Support:** Secure connections to your SMTP servers.
14
- * **Authentication Galore:** Supports popular SMTP authentication methods like
15
- `PLAIN`, `LOGIN`, `CRAM-MD5`, and `XOAUTH2`.
16
- * **Asynchronous Sending:** Emails are queued and sent in the
17
- background.
18
- * **Rich Content:** Send HTML emails and include multiple attachments.
19
- * **Flexible Attachments:** Attachments can be files, data streams, or plain
20
- strings.
21
- * **UTF-8 Ready:** Full support for UTF-8 in headers and body.
22
- * **Built-in Type Declarations:** first-class TypeScript support.
23
- * **Greylisting Awareness:** Automatically handles
24
- [greylisting](http://projects.puremagic.com/greylisting/whitepaper.html) to
25
- improve deliverability.
13
+ - **SSL and TLS Support:** Secure connections to your SMTP servers.
14
+ - **Authentication Galore:** Supports popular SMTP authentication methods like
15
+ `PLAIN`, `LOGIN`, `CRAM-MD5`, and `XOAUTH2`.
16
+ - **Asynchronous Sending:** Emails are queued and sent in the
17
+ background.
18
+ - **Rich Content:** Send HTML emails and include multiple attachments.
19
+ - **Flexible Attachments:** Attachments can be files, data streams, or plain
20
+ strings.
21
+ - **UTF-8 Ready:** Full support for UTF-8 in headers and body.
22
+ - **Built-in Type Declarations:** first-class TypeScript support.
23
+ - **Greylisting Awareness:** Automatically handles
24
+ [greylisting](http://projects.puremagic.com/greylisting/whitepaper.html) to
25
+ improve deliverability.
26
26
 
27
27
  ## Get Started! 🛠️
28
28
 
@@ -36,9 +36,9 @@ npm install emailjs
36
36
 
37
37
  ### Requirements
38
38
 
39
- * Access to an SMTP Server.
40
- * If your email service (like Gmail) uses two-step verification, you'll need an
41
- application-specific password.
39
+ - Access to an SMTP Server.
40
+ - If your email service (like Gmail) uses two-step verification, you'll need an
41
+ application-specific password.
42
42
 
43
43
  ### Quick Examples 🧑‍💻
44
44
 
@@ -47,90 +47,90 @@ Here's how easy it is to send emails:
47
47
  #### Text-Only Emails
48
48
 
49
49
  ```javascript
50
- import { SMTPClient } from 'emailjs';
50
+ import { SMTPClient } from 'emailjs'
51
51
 
52
52
  const client = new SMTPClient({
53
- user: 'your-username',
54
- password: 'your-password',
55
- host: 'smtp.your-email.com',
56
- ssl: true, // Use SSL for secure connection
57
- });
53
+ user: 'your-username',
54
+ password: 'your-password',
55
+ host: 'smtp.your-email.com',
56
+ ssl: true, // Use SSL for secure connection
57
+ })
58
58
 
59
59
  async function sendMyEmail() {
60
- try {
61
- const message = await client.sendAsync({
62
- text: 'Hello from emailjs! This is a test message.',
63
- from: 'You <your-email@example.com>',
64
- to: 'Someone <someone@example.com>',
65
- subject: 'Exciting News from emailjs! 🎉',
66
- });
67
- console.log('Email sent successfully:', message);
68
- } catch (err) {
69
- console.error('Failed to send email:', err);
70
- } finally {
71
- client.smtp.close(); // Don't forget to close the connection!
72
- }
60
+ try {
61
+ const message = await client.sendAsync({
62
+ text: 'Hello from emailjs! This is a test message.',
63
+ from: 'You <your-email@example.com>',
64
+ to: 'Someone <someone@example.com>',
65
+ subject: 'Exciting News from emailjs! 🎉',
66
+ })
67
+ console.log('Email sent successfully:', message)
68
+ } catch (err) {
69
+ console.error('Failed to send email:', err)
70
+ } finally {
71
+ client.smtp.close() // Don't forget to close the connection!
72
+ }
73
73
  }
74
74
 
75
- sendMyEmail();
75
+ sendMyEmail()
76
76
  ```
77
77
 
78
78
  #### HTML Emails & Attachments
79
79
 
80
80
  ```javascript
81
- import { SMTPClient, Message } from 'emailjs';
81
+ import { SMTPClient, Message } from 'emailjs'
82
82
 
83
83
  const client = new SMTPClient({
84
- user: 'your-username',
85
- password: 'your-password',
86
- host: 'smtp.your-email.com',
87
- tls: true,
88
- });
84
+ user: 'your-username',
85
+ password: 'your-password',
86
+ host: 'smtp.your-email.com',
87
+ tls: true,
88
+ })
89
89
 
90
90
  async function sendRichEmail() {
91
- const htmlContent = `
91
+ const htmlContent = `
92
92
  <h1>Greetings!</h1>
93
93
  <p>This is an <b>HTML email</b> with a lovely picture and an attachment.</p>
94
94
  <img src="cid:my-image" alt="Embedded Image" width="150" height="100">
95
95
  <p>Check out the attached file!</p>
96
- `;
97
-
98
- const message = new Message({
99
- from: 'You <your-email@example.com>',
100
- to: 'Someone <someone@example.com>',
101
- subject: 'Your Awesome HTML Email! 🖼️📄',
102
- attachment: [
103
- {
104
- data: htmlContent,
105
- alternative: true, // This part is the HTML body
106
- contentType: 'text/html',
107
- },
108
- {
109
- path: 'path/to/your/document.pdf', // Attach a file from disk
110
- type: 'application/pdf',
111
- name: 'document.pdf',
112
- },
113
- {
114
- path: 'path/to/your/image.jpg', // Embed an image for the HTML
115
- type: 'image/jpeg',
116
- name: 'cool_image.jpg',
117
- // Reference in HTML with cid:my-image
118
- headers: { 'Content-ID': '<my-image>' },
119
- },
120
- ],
121
- });
122
-
123
- try {
124
- await client.sendAsync(message);
125
- console.log('Rich email sent successfully!');
126
- } catch (err) {
127
- console.error('Failed to send rich email:', err);
128
- } finally {
129
- client.smtp.close();
130
- }
96
+ `
97
+
98
+ const message = new Message({
99
+ from: 'You <your-email@example.com>',
100
+ to: 'Someone <someone@example.com>',
101
+ subject: 'Your Awesome HTML Email! 🖼️📄',
102
+ attachment: [
103
+ {
104
+ data: htmlContent,
105
+ alternative: true, // This part is the HTML body
106
+ contentType: 'text/html',
107
+ },
108
+ {
109
+ path: 'path/to/your/document.pdf', // Attach a file from disk
110
+ type: 'application/pdf',
111
+ name: 'document.pdf',
112
+ },
113
+ {
114
+ path: 'path/to/your/image.jpg', // Embed an image for the HTML
115
+ type: 'image/jpeg',
116
+ name: 'cool_image.jpg',
117
+ // Reference in HTML with cid:my-image
118
+ headers: { 'Content-ID': '<my-image>' },
119
+ },
120
+ ],
121
+ })
122
+
123
+ try {
124
+ await client.sendAsync(message)
125
+ console.log('Rich email sent successfully!')
126
+ } catch (err) {
127
+ console.error('Failed to send rich email:', err)
128
+ } finally {
129
+ client.smtp.close()
130
+ }
131
131
  }
132
132
 
133
- sendRichEmail();
133
+ sendRichEmail()
134
134
  ```
135
135
 
136
136
  ## API Reference 📖
@@ -144,17 +144,17 @@ Create a new client instance to connect to your SMTP server.
144
144
 
145
145
  ```javascript
146
146
  const options = {
147
- user: 'your-username', // 🔑 Username for logging into SMTP
148
- password: 'your-password', // 🤫 Password for logging into SMTP
149
- host: 'smtp.your-email.com', // 🌐 SMTP server host (defaults to 'localhost')
150
- port: 587, // 🔌 SMTP port (defaults: 25 unencrypted, 465 SSL, 587 TLS)
151
- ssl: true, // 🔒 Boolean or object for immediate SSL connection
152
- tls: true, // 🔐 Boolean or object (see typescript types) to initiate STARTTLS
153
- timeout: 5000, // ⏳ Max milliseconds to wait for SMTP responses
154
- domain: 'your-domain.com', // 🏠 Domain to greet SMTP with (defaults to os.hostname)
155
- authentication: ['PLAIN', 'LOGIN'], // 🤝 Preferred authentication methods
156
- logger: console, // 📝 Override the built-in logger (e.g., custom logging)
157
- };
147
+ user: 'your-username', // 🔑 Username for logging into SMTP
148
+ password: 'your-password', // 🤫 Password for logging into SMTP
149
+ host: 'smtp.your-email.com', // 🌐 SMTP server host (defaults to 'localhost')
150
+ port: 587, // 🔌 SMTP port (defaults: 25 unencrypted, 465 SSL, 587 TLS)
151
+ ssl: true, // 🔒 Boolean or object for immediate SSL connection
152
+ tls: true, // 🔐 Boolean or object (see typescript types) to initiate STARTTLS
153
+ timeout: 5000, // ⏳ Max milliseconds to wait for SMTP responses
154
+ domain: 'your-domain.com', // 🏠 Domain to greet SMTP with (defaults to os.hostname)
155
+ authentication: ['PLAIN', 'LOGIN'], // 🤝 Preferred authentication methods
156
+ logger: console, // 📝 Override the built-in logger (e.g., custom logging)
157
+ }
158
158
  ```
159
159
 
160
160
  ### `SMTPClient#send(message, callback)`
@@ -163,9 +163,9 @@ Sends an email message. You can pass a `Message` instance or a headers object.
163
163
 
164
164
  ```javascript
165
165
  client.send(messageObject, (err, details) => {
166
- if (err) console.error(err);
167
- else console.log('Message sent:', details);
168
- });
166
+ if (err) console.error(err)
167
+ else console.log('Message sent:', details)
168
+ })
169
169
  ```
170
170
 
171
171
  ### `SMTPClient#sendAsync(message)`
@@ -174,10 +174,10 @@ a promise-based way to send emails! ✨
174
174
 
175
175
  ```javascript
176
176
  try {
177
- const details = await client.sendAsync(messageObject);
178
- console.log('Message sent:', details);
177
+ const details = await client.sendAsync(messageObject)
178
+ console.log('Message sent:', details)
179
179
  } catch (err) {
180
- console.error('Failed to send:', err);
180
+ console.error('Failed to send:', err)
181
181
  }
182
182
  ```
183
183
 
@@ -187,14 +187,14 @@ Constructs an RFC2822-compliant message object.
187
187
 
188
188
  ```javascript
189
189
  const headers = {
190
- from: 'sender@example.com', // 💌 Sender (required!)
191
- to: 'recipient@example.com', // 📬 Recipients (at least one of to, cc, or bcc)
192
- cc: 'carbon-copy@example.com', // 👥 CC recipients
193
- bcc: 'blind-copy@example.com', // 🕵️‍♀️ BCC recipients
194
- subject: 'Your Subject Here', // 📝 Email subject
195
- text: 'Plain text body.', // 🗒️ Plain text content
196
- attachment: [{ data: 'Hello!' }], // 📎 One or more attachments
197
- };
190
+ from: 'sender@example.com', // 💌 Sender (required!)
191
+ to: 'recipient@example.com', // 📬 Recipients (at least one of to, cc, or bcc)
192
+ cc: 'carbon-copy@example.com', // 👥 CC recipients
193
+ bcc: 'blind-copy@example.com', // 🕵️‍♀️ BCC recipients
194
+ subject: 'Your Subject Here', // 📝 Email subject
195
+ text: 'Plain text body.', // 🗒️ Plain text content
196
+ attachment: [{ data: 'Hello!' }], // 📎 One or more attachments
197
+ }
198
198
  ```
199
199
 
200
200
  ### `Message#attach(options)`
@@ -203,15 +203,15 @@ Adds an attachment to the message. Can be called multiple times.
203
203
 
204
204
  ```javascript
205
205
  message.attach({
206
- path: 'path/to/file.zip', // 📁 Path to a file on disk
207
- data: 'Binary content as string or buffer', // 📄 Raw data
208
- stream: fs.createReadStream('file.jpg'), // 🌊 A readable stream
209
- type: 'application/zip', // MIME type
210
- name: 'custom-name.zip', // Filename perceived by recipient
211
- alternative: true, // attach inline as an alternative (e.g., HTML body)
212
- inline: true, // If true, attached inline (e.g., for <img src="cid:...">)
213
- headers: { 'X-Custom-Header': 'value' }, // Custom attachment headers
214
- });
206
+ path: 'path/to/file.zip', // 📁 Path to a file on disk
207
+ data: 'Binary content as string or buffer', // 📄 Raw data
208
+ stream: fs.createReadStream('file.jpg'), // 🌊 A readable stream
209
+ type: 'application/zip', // MIME type
210
+ name: 'custom-name.zip', // Filename perceived by recipient
211
+ alternative: true, // attach inline as an alternative (e.g., HTML body)
212
+ inline: true, // If true, attached inline (e.g., for <img src="cid:...">)
213
+ headers: { 'X-Custom-Header': 'value' }, // Custom attachment headers
214
+ })
215
215
  ```
216
216
 
217
217
  ### `Message#checkValidity()`
@@ -219,16 +219,16 @@ message.attach({
219
219
  Synchronously validates that a `Message` is properly formed before sending.
220
220
 
221
221
  ```javascript
222
- const { isValid, validationError } = message.checkValidity();
222
+ const { isValid, validationError } = message.checkValidity()
223
223
  if (!isValid) {
224
- console.error('Message is invalid:', validationError);
224
+ console.error('Message is invalid:', validationError)
225
225
  }
226
226
  ```
227
227
 
228
228
  ## Authors ✍️
229
229
 
230
- * eleith
231
- * zackschuster
230
+ - eleith
231
+ - zackschuster
232
232
 
233
233
  ## Testing 🧪
234
234
 
@@ -256,8 +256,8 @@ docker compose up
256
256
 
257
257
  Mailpit will be accessible via:
258
258
 
259
- * **Web UI:** `http://localhost:8025`
260
- * **SMTP Server:** `localhost:1025`
259
+ - **Web UI:** `http://localhost:8025`
260
+ - **SMTP Server:** `localhost:1025`
261
261
 
262
262
  ### 2. Run Example Sending Scripts
263
263
 
@@ -285,4 +285,3 @@ node scripts/send-attachment.js
285
285
 
286
286
  After running a script, open your Mailpit Web UI (`http://localhost:8025`) to
287
287
  see the emails stream in! 📩
288
-
@@ -0,0 +1,5 @@
1
+ export interface AddressToken {
2
+ type: 'operator' | 'text';
3
+ value: string;
4
+ }
5
+ export declare function tokenizeAddress(address?: string | string[]): AddressToken[];
@@ -0,0 +1,150 @@
1
+ const OPERATORS = new Set([
2
+ '"',
3
+ '(',
4
+ '<',
5
+ ',',
6
+ ':',
7
+ // Accept standalone semicolons as legacy comma-equivalent separators.
8
+ ';',
9
+ ]);
10
+ // Find an unescaped closer (or recovery ';'), returning input.length if unfinished.
11
+ function scanEscapedSpan(input, start, closers) {
12
+ for (let i = start + 1; i < input.length; i++) {
13
+ if (input[i] === '\\') {
14
+ i++;
15
+ }
16
+ else if (closers.includes(input[i])) {
17
+ return i;
18
+ }
19
+ }
20
+ return input.length;
21
+ }
22
+ // Find the outermost comment closer iteratively, or input.length if unfinished.
23
+ function scanComment(input, start) {
24
+ let depth = 1;
25
+ for (let i = start + 1; i < input.length; i++) {
26
+ if (input[i] === '\\') {
27
+ i++;
28
+ }
29
+ else if (input[i] === '(') {
30
+ depth++;
31
+ }
32
+ else if (input[i] === ')') {
33
+ depth--;
34
+ if (depth === 0) {
35
+ return i;
36
+ }
37
+ }
38
+ }
39
+ return input.length;
40
+ }
41
+ // Find '>' (or recovery ';' inside a group), or input.length if unfinished.
42
+ function scanAngleAddress(input, start, stopAtGroupTerminator = false) {
43
+ let afterAt = false;
44
+ for (let i = start + 1; i < input.length; i++) {
45
+ const character = input[i];
46
+ if (character === '>' || (stopAtGroupTerminator && character === ';')) {
47
+ return i;
48
+ }
49
+ if (character === '"') {
50
+ i = scanEscapedSpan(input, i, '"');
51
+ }
52
+ else if (character === '(') {
53
+ i = scanComment(input, i);
54
+ }
55
+ else if (character === '[' && afterAt) {
56
+ i = scanEscapedSpan(input, i, ']');
57
+ }
58
+ else if (character.trim().length > 0) {
59
+ afterAt = character === '@';
60
+ }
61
+ }
62
+ return input.length;
63
+ }
64
+ // Find an unprotected group terminator, or input.length if unfinished.
65
+ function scanGroup(input, start) {
66
+ let afterAt = false;
67
+ for (let i = start + 1; i < input.length; i++) {
68
+ if (input[i] === ';') {
69
+ return i;
70
+ }
71
+ if (input[i] === '"') {
72
+ i = scanEscapedSpan(input, i, '"');
73
+ }
74
+ else if (input[i] === '(') {
75
+ i = scanComment(input, i);
76
+ }
77
+ else if (input[i] === '<') {
78
+ i = scanAngleAddress(input, i, true);
79
+ if (input[i] === ';') {
80
+ return i;
81
+ }
82
+ afterAt = false;
83
+ }
84
+ else if (input[i] === '[' && afterAt) {
85
+ // Stop at ';' in bare literals to preserve recovery without repeated lookahead.
86
+ i = scanEscapedSpan(input, i, '];');
87
+ if (input[i] === ';') {
88
+ return i;
89
+ }
90
+ afterAt = false;
91
+ }
92
+ else if (input[i].trim().length > 0) {
93
+ afterAt = input[i] === '@';
94
+ }
95
+ }
96
+ return input.length;
97
+ }
98
+ // Emit operator/text tokens, decoding quoted-pairs only in names and comments.
99
+ export function tokenizeAddress(address = '') {
100
+ const input = address.toString();
101
+ const tokens = [];
102
+ let cursor = 0;
103
+ // Trim and emit nonempty text tokens.
104
+ function addText(value) {
105
+ value = value.trim();
106
+ if (value.length > 0) {
107
+ tokens.push({ type: 'text', value });
108
+ }
109
+ }
110
+ while (cursor < input.length) {
111
+ const start = cursor;
112
+ const character = input[cursor++];
113
+ if (!OPERATORS.has(character)) {
114
+ while (cursor < input.length && !OPERATORS.has(input[cursor])) {
115
+ cursor++;
116
+ }
117
+ addText(input.slice(start, cursor));
118
+ continue;
119
+ }
120
+ tokens.push({ type: 'operator', value: character });
121
+ let end;
122
+ switch (character) {
123
+ case '"':
124
+ end = scanEscapedSpan(input, start, '"');
125
+ break;
126
+ case '(':
127
+ end = scanComment(input, start);
128
+ break;
129
+ case '<':
130
+ end = scanAngleAddress(input, start);
131
+ break;
132
+ case ':':
133
+ end = scanGroup(input, start);
134
+ break;
135
+ default:
136
+ continue; // Commas and standalone semicolons have no contents.
137
+ }
138
+ const contents = input.slice(cursor, end);
139
+ // Preserve raw group/address syntax; decode only complete name/comment quoted-pairs.
140
+ addText(character === '"' || character === '('
141
+ ? contents.replace(/\\([\s\S])/g, '$1')
142
+ : contents);
143
+ if (end < input.length) {
144
+ tokens.push({ type: 'operator', value: input[end] });
145
+ }
146
+ cursor = end + 1;
147
+ }
148
+ return tokens;
149
+ }
150
+ //# sourceMappingURL=address-tokenizer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address-tokenizer.js","sourceRoot":"","sources":["../src/address-tokenizer.ts"],"names":[],"mappings":"AAKA,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC;IACzB,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,sEAAsE;IACtE,GAAG;CACH,CAAC,CAAA;AAEF,oFAAoF;AACpF,SAAS,eAAe,CACvB,KAAa,EACb,KAAa,EACb,OAAyB;IAEzB,KAAK,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAC/C,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;YACvB,CAAC,EAAE,CAAA;QACJ,CAAC;aAAM,IAAI,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACvC,OAAO,CAAC,CAAA;QACT,CAAC;IACF,CAAC;IACD,OAAO,KAAK,CAAC,MAAM,CAAA;AACpB,CAAC;AAED,gFAAgF;AAChF,SAAS,WAAW,CAAC,KAAa,EAAE,KAAa;IAChD,IAAI,KAAK,GAAG,CAAC,CAAA;IACb,KAAK,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAC/C,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;YACvB,CAAC,EAAE,CAAA;QACJ,CAAC;aAAM,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,E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