@bobfrankston/mailx 1.0.31 → 1.0.33
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/client/styles/layout.css +12 -7
- package/launcher/builder/postinstall.js +7 -7
- package/package.json +5 -5
- package/packages/mailx-send/mailsend/node_modules/.package-lock.json +0 -49
- package/packages/mailx-send/mailsend/node_modules/@types/node/LICENSE +0 -21
- package/packages/mailx-send/mailsend/node_modules/@types/node/README.md +0 -15
- package/packages/mailx-send/mailsend/node_modules/@types/node/assert/strict.d.ts +0 -111
- package/packages/mailx-send/mailsend/node_modules/@types/node/assert.d.ts +0 -1078
- package/packages/mailx-send/mailsend/node_modules/@types/node/async_hooks.d.ts +0 -603
- package/packages/mailx-send/mailsend/node_modules/@types/node/buffer.buffer.d.ts +0 -472
- package/packages/mailx-send/mailsend/node_modules/@types/node/buffer.d.ts +0 -1934
- package/packages/mailx-send/mailsend/node_modules/@types/node/child_process.d.ts +0 -1476
- package/packages/mailx-send/mailsend/node_modules/@types/node/cluster.d.ts +0 -578
- package/packages/mailx-send/mailsend/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
- package/packages/mailx-send/mailsend/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/packages/mailx-send/mailsend/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/packages/mailx-send/mailsend/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
- package/packages/mailx-send/mailsend/node_modules/@types/node/console.d.ts +0 -452
- package/packages/mailx-send/mailsend/node_modules/@types/node/constants.d.ts +0 -21
- package/packages/mailx-send/mailsend/node_modules/@types/node/crypto.d.ts +0 -4545
- package/packages/mailx-send/mailsend/node_modules/@types/node/dgram.d.ts +0 -600
- package/packages/mailx-send/mailsend/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
- package/packages/mailx-send/mailsend/node_modules/@types/node/dns/promises.d.ts +0 -503
- package/packages/mailx-send/mailsend/node_modules/@types/node/dns.d.ts +0 -923
- package/packages/mailx-send/mailsend/node_modules/@types/node/domain.d.ts +0 -170
- package/packages/mailx-send/mailsend/node_modules/@types/node/events.d.ts +0 -976
- package/packages/mailx-send/mailsend/node_modules/@types/node/fs/promises.d.ts +0 -1295
- package/packages/mailx-send/mailsend/node_modules/@types/node/fs.d.ts +0 -4461
- package/packages/mailx-send/mailsend/node_modules/@types/node/globals.d.ts +0 -172
- package/packages/mailx-send/mailsend/node_modules/@types/node/globals.typedarray.d.ts +0 -38
- package/packages/mailx-send/mailsend/node_modules/@types/node/http.d.ts +0 -2089
- package/packages/mailx-send/mailsend/node_modules/@types/node/http2.d.ts +0 -2644
- package/packages/mailx-send/mailsend/node_modules/@types/node/https.d.ts +0 -579
- package/packages/mailx-send/mailsend/node_modules/@types/node/index.d.ts +0 -97
- package/packages/mailx-send/mailsend/node_modules/@types/node/inspector.d.ts +0 -253
- package/packages/mailx-send/mailsend/node_modules/@types/node/inspector.generated.d.ts +0 -4052
- package/packages/mailx-send/mailsend/node_modules/@types/node/module.d.ts +0 -891
- package/packages/mailx-send/mailsend/node_modules/@types/node/net.d.ts +0 -1057
- package/packages/mailx-send/mailsend/node_modules/@types/node/os.d.ts +0 -506
- package/packages/mailx-send/mailsend/node_modules/@types/node/package.json +0 -145
- package/packages/mailx-send/mailsend/node_modules/@types/node/path.d.ts +0 -200
- package/packages/mailx-send/mailsend/node_modules/@types/node/perf_hooks.d.ts +0 -968
- package/packages/mailx-send/mailsend/node_modules/@types/node/process.d.ts +0 -2084
- package/packages/mailx-send/mailsend/node_modules/@types/node/punycode.d.ts +0 -117
- package/packages/mailx-send/mailsend/node_modules/@types/node/querystring.d.ts +0 -152
- package/packages/mailx-send/mailsend/node_modules/@types/node/readline/promises.d.ts +0 -161
- package/packages/mailx-send/mailsend/node_modules/@types/node/readline.d.ts +0 -594
- package/packages/mailx-send/mailsend/node_modules/@types/node/repl.d.ts +0 -428
- package/packages/mailx-send/mailsend/node_modules/@types/node/sea.d.ts +0 -153
- package/packages/mailx-send/mailsend/node_modules/@types/node/sqlite.d.ts +0 -721
- package/packages/mailx-send/mailsend/node_modules/@types/node/stream/consumers.d.ts +0 -38
- package/packages/mailx-send/mailsend/node_modules/@types/node/stream/promises.d.ts +0 -90
- package/packages/mailx-send/mailsend/node_modules/@types/node/stream/web.d.ts +0 -622
- package/packages/mailx-send/mailsend/node_modules/@types/node/stream.d.ts +0 -1664
- package/packages/mailx-send/mailsend/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/packages/mailx-send/mailsend/node_modules/@types/node/test.d.ts +0 -2163
- package/packages/mailx-send/mailsend/node_modules/@types/node/timers/promises.d.ts +0 -108
- package/packages/mailx-send/mailsend/node_modules/@types/node/timers.d.ts +0 -287
- package/packages/mailx-send/mailsend/node_modules/@types/node/tls.d.ts +0 -1319
- package/packages/mailx-send/mailsend/node_modules/@types/node/trace_events.d.ts +0 -197
- package/packages/mailx-send/mailsend/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
- package/packages/mailx-send/mailsend/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
- package/packages/mailx-send/mailsend/node_modules/@types/node/ts5.6/index.d.ts +0 -97
- package/packages/mailx-send/mailsend/node_modules/@types/node/tty.d.ts +0 -208
- package/packages/mailx-send/mailsend/node_modules/@types/node/url.d.ts +0 -984
- package/packages/mailx-send/mailsend/node_modules/@types/node/util.d.ts +0 -2606
- package/packages/mailx-send/mailsend/node_modules/@types/node/v8.d.ts +0 -920
- package/packages/mailx-send/mailsend/node_modules/@types/node/vm.d.ts +0 -1000
- package/packages/mailx-send/mailsend/node_modules/@types/node/wasi.d.ts +0 -181
- package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
- package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
- package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/events.d.ts +0 -97
- package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
- package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/navigator.d.ts +0 -22
- package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/storage.d.ts +0 -24
- package/packages/mailx-send/mailsend/node_modules/@types/node/worker_threads.d.ts +0 -784
- package/packages/mailx-send/mailsend/node_modules/@types/node/zlib.d.ts +0 -747
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/LICENSE +0 -21
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/README.md +0 -15
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/index.d.ts +0 -82
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/addressparser/index.d.ts +0 -31
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/base64/index.d.ts +0 -22
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/dkim/index.d.ts +0 -45
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/dkim/message-parser.d.ts +0 -75
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/dkim/relaxed-body.d.ts +0 -75
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/dkim/sign.d.ts +0 -21
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/fetch/cookies.d.ts +0 -54
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/fetch/index.d.ts +0 -38
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/json-transport/index.d.ts +0 -53
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mail-composer/index.d.ts +0 -25
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mailer/index.d.ts +0 -283
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mailer/mail-message.d.ts +0 -32
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mime-funcs/index.d.ts +0 -87
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mime-funcs/mime-types.d.ts +0 -2
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mime-node/index.d.ts +0 -224
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mime-node/last-newline.d.ts +0 -9
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/qp/index.d.ts +0 -23
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/sendmail-transport/index.d.ts +0 -53
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/sendmail-transport/le-unix.d.ts +0 -7
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/sendmail-transport/le-windows.d.ts +0 -7
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/ses-transport/index.d.ts +0 -146
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/shared/index.d.ts +0 -58
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-connection/data-stream.d.ts +0 -11
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-connection/http-proxy-client.d.ts +0 -16
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-connection/index.d.ts +0 -270
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-pool/index.d.ts +0 -93
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-pool/pool-resource.d.ts +0 -66
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-transport/index.d.ts +0 -115
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/stream-transport/index.d.ts +0 -59
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/well-known/index.d.ts +0 -6
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/xoauth2/index.d.ts +0 -114
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/package.json +0 -38
- package/packages/mailx-send/mailsend/node_modules/nodemailer/.ncurc.js +0 -9
- package/packages/mailx-send/mailsend/node_modules/nodemailer/.prettierignore +0 -8
- package/packages/mailx-send/mailsend/node_modules/nodemailer/.prettierrc +0 -12
- package/packages/mailx-send/mailsend/node_modules/nodemailer/.prettierrc.js +0 -10
- package/packages/mailx-send/mailsend/node_modules/nodemailer/.release-please-config.json +0 -9
- package/packages/mailx-send/mailsend/node_modules/nodemailer/LICENSE +0 -16
- package/packages/mailx-send/mailsend/node_modules/nodemailer/README.md +0 -86
- package/packages/mailx-send/mailsend/node_modules/nodemailer/SECURITY.txt +0 -22
- package/packages/mailx-send/mailsend/node_modules/nodemailer/eslint.config.js +0 -88
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/addressparser/index.js +0 -383
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/base64/index.js +0 -139
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/dkim/index.js +0 -253
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/dkim/message-parser.js +0 -155
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/dkim/relaxed-body.js +0 -154
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/dkim/sign.js +0 -117
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/fetch/cookies.js +0 -281
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/fetch/index.js +0 -280
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/json-transport/index.js +0 -82
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mail-composer/index.js +0 -629
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mailer/index.js +0 -441
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mailer/mail-message.js +0 -316
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-funcs/index.js +0 -625
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-funcs/mime-types.js +0 -2113
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-node/index.js +0 -1316
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-node/last-newline.js +0 -33
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-node/le-unix.js +0 -43
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-node/le-windows.js +0 -52
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/nodemailer.js +0 -157
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/punycode/index.js +0 -460
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/qp/index.js +0 -227
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/sendmail-transport/index.js +0 -210
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/ses-transport/index.js +0 -234
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/shared/index.js +0 -754
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-connection/data-stream.js +0 -108
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js +0 -143
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-connection/index.js +0 -1870
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-pool/index.js +0 -652
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-pool/pool-resource.js +0 -259
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-transport/index.js +0 -421
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/stream-transport/index.js +0 -135
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/well-known/index.js +0 -47
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/well-known/services.json +0 -611
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/xoauth2/index.js +0 -427
- package/packages/mailx-send/mailsend/node_modules/nodemailer/package.json +0 -47
- package/packages/mailx-send/mailsend/node_modules/undici-types/LICENSE +0 -21
- package/packages/mailx-send/mailsend/node_modules/undici-types/README.md +0 -6
- package/packages/mailx-send/mailsend/node_modules/undici-types/agent.d.ts +0 -31
- package/packages/mailx-send/mailsend/node_modules/undici-types/api.d.ts +0 -43
- package/packages/mailx-send/mailsend/node_modules/undici-types/balanced-pool.d.ts +0 -29
- package/packages/mailx-send/mailsend/node_modules/undici-types/cache.d.ts +0 -36
- package/packages/mailx-send/mailsend/node_modules/undici-types/client.d.ts +0 -108
- package/packages/mailx-send/mailsend/node_modules/undici-types/connector.d.ts +0 -34
- package/packages/mailx-send/mailsend/node_modules/undici-types/content-type.d.ts +0 -21
- package/packages/mailx-send/mailsend/node_modules/undici-types/cookies.d.ts +0 -28
- package/packages/mailx-send/mailsend/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
- package/packages/mailx-send/mailsend/node_modules/undici-types/dispatcher.d.ts +0 -256
- package/packages/mailx-send/mailsend/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
- package/packages/mailx-send/mailsend/node_modules/undici-types/errors.d.ts +0 -149
- package/packages/mailx-send/mailsend/node_modules/undici-types/eventsource.d.ts +0 -61
- package/packages/mailx-send/mailsend/node_modules/undici-types/fetch.d.ts +0 -209
- package/packages/mailx-send/mailsend/node_modules/undici-types/file.d.ts +0 -39
- package/packages/mailx-send/mailsend/node_modules/undici-types/filereader.d.ts +0 -54
- package/packages/mailx-send/mailsend/node_modules/undici-types/formdata.d.ts +0 -108
- package/packages/mailx-send/mailsend/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/packages/mailx-send/mailsend/node_modules/undici-types/global-origin.d.ts +0 -7
- package/packages/mailx-send/mailsend/node_modules/undici-types/handlers.d.ts +0 -15
- package/packages/mailx-send/mailsend/node_modules/undici-types/header.d.ts +0 -4
- package/packages/mailx-send/mailsend/node_modules/undici-types/index.d.ts +0 -71
- package/packages/mailx-send/mailsend/node_modules/undici-types/interceptors.d.ts +0 -17
- package/packages/mailx-send/mailsend/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/packages/mailx-send/mailsend/node_modules/undici-types/mock-client.d.ts +0 -25
- package/packages/mailx-send/mailsend/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/packages/mailx-send/mailsend/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/packages/mailx-send/mailsend/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/packages/mailx-send/mailsend/node_modules/undici-types/package.json +0 -55
- package/packages/mailx-send/mailsend/node_modules/undici-types/patch.d.ts +0 -33
- package/packages/mailx-send/mailsend/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/packages/mailx-send/mailsend/node_modules/undici-types/pool.d.ts +0 -39
- package/packages/mailx-send/mailsend/node_modules/undici-types/proxy-agent.d.ts +0 -28
- package/packages/mailx-send/mailsend/node_modules/undici-types/readable.d.ts +0 -65
- package/packages/mailx-send/mailsend/node_modules/undici-types/retry-agent.d.ts +0 -8
- package/packages/mailx-send/mailsend/node_modules/undici-types/retry-handler.d.ts +0 -116
- package/packages/mailx-send/mailsend/node_modules/undici-types/util.d.ts +0 -18
- package/packages/mailx-send/mailsend/node_modules/undici-types/webidl.d.ts +0 -228
- package/packages/mailx-send/mailsend/node_modules/undici-types/websocket.d.ts +0 -150
- package/packages/mailx-send/node_modules/.package-lock.json +0 -49
- package/packages/mailx-send/node_modules/@types/node/LICENSE +0 -21
- package/packages/mailx-send/node_modules/@types/node/README.md +0 -15
- package/packages/mailx-send/node_modules/@types/node/assert/strict.d.ts +0 -111
- package/packages/mailx-send/node_modules/@types/node/assert.d.ts +0 -1078
- package/packages/mailx-send/node_modules/@types/node/async_hooks.d.ts +0 -603
- package/packages/mailx-send/node_modules/@types/node/buffer.buffer.d.ts +0 -472
- package/packages/mailx-send/node_modules/@types/node/buffer.d.ts +0 -1934
- package/packages/mailx-send/node_modules/@types/node/child_process.d.ts +0 -1476
- package/packages/mailx-send/node_modules/@types/node/cluster.d.ts +0 -578
- package/packages/mailx-send/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
- package/packages/mailx-send/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/packages/mailx-send/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/packages/mailx-send/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
- package/packages/mailx-send/node_modules/@types/node/console.d.ts +0 -452
- package/packages/mailx-send/node_modules/@types/node/constants.d.ts +0 -21
- package/packages/mailx-send/node_modules/@types/node/crypto.d.ts +0 -4545
- package/packages/mailx-send/node_modules/@types/node/dgram.d.ts +0 -600
- package/packages/mailx-send/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
- package/packages/mailx-send/node_modules/@types/node/dns/promises.d.ts +0 -503
- package/packages/mailx-send/node_modules/@types/node/dns.d.ts +0 -923
- package/packages/mailx-send/node_modules/@types/node/domain.d.ts +0 -170
- package/packages/mailx-send/node_modules/@types/node/events.d.ts +0 -976
- package/packages/mailx-send/node_modules/@types/node/fs/promises.d.ts +0 -1295
- package/packages/mailx-send/node_modules/@types/node/fs.d.ts +0 -4461
- package/packages/mailx-send/node_modules/@types/node/globals.d.ts +0 -172
- package/packages/mailx-send/node_modules/@types/node/globals.typedarray.d.ts +0 -38
- package/packages/mailx-send/node_modules/@types/node/http.d.ts +0 -2089
- package/packages/mailx-send/node_modules/@types/node/http2.d.ts +0 -2644
- package/packages/mailx-send/node_modules/@types/node/https.d.ts +0 -579
- package/packages/mailx-send/node_modules/@types/node/index.d.ts +0 -97
- package/packages/mailx-send/node_modules/@types/node/inspector.d.ts +0 -253
- package/packages/mailx-send/node_modules/@types/node/inspector.generated.d.ts +0 -4052
- package/packages/mailx-send/node_modules/@types/node/module.d.ts +0 -891
- package/packages/mailx-send/node_modules/@types/node/net.d.ts +0 -1057
- package/packages/mailx-send/node_modules/@types/node/os.d.ts +0 -506
- package/packages/mailx-send/node_modules/@types/node/package.json +0 -145
- package/packages/mailx-send/node_modules/@types/node/path.d.ts +0 -200
- package/packages/mailx-send/node_modules/@types/node/perf_hooks.d.ts +0 -968
- package/packages/mailx-send/node_modules/@types/node/process.d.ts +0 -2084
- package/packages/mailx-send/node_modules/@types/node/punycode.d.ts +0 -117
- package/packages/mailx-send/node_modules/@types/node/querystring.d.ts +0 -152
- package/packages/mailx-send/node_modules/@types/node/readline/promises.d.ts +0 -161
- package/packages/mailx-send/node_modules/@types/node/readline.d.ts +0 -594
- package/packages/mailx-send/node_modules/@types/node/repl.d.ts +0 -428
- package/packages/mailx-send/node_modules/@types/node/sea.d.ts +0 -153
- package/packages/mailx-send/node_modules/@types/node/sqlite.d.ts +0 -721
- package/packages/mailx-send/node_modules/@types/node/stream/consumers.d.ts +0 -38
- package/packages/mailx-send/node_modules/@types/node/stream/promises.d.ts +0 -90
- package/packages/mailx-send/node_modules/@types/node/stream/web.d.ts +0 -622
- package/packages/mailx-send/node_modules/@types/node/stream.d.ts +0 -1664
- package/packages/mailx-send/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/packages/mailx-send/node_modules/@types/node/test.d.ts +0 -2163
- package/packages/mailx-send/node_modules/@types/node/timers/promises.d.ts +0 -108
- package/packages/mailx-send/node_modules/@types/node/timers.d.ts +0 -287
- package/packages/mailx-send/node_modules/@types/node/tls.d.ts +0 -1319
- package/packages/mailx-send/node_modules/@types/node/trace_events.d.ts +0 -197
- package/packages/mailx-send/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
- package/packages/mailx-send/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
- package/packages/mailx-send/node_modules/@types/node/ts5.6/index.d.ts +0 -97
- package/packages/mailx-send/node_modules/@types/node/tty.d.ts +0 -208
- package/packages/mailx-send/node_modules/@types/node/url.d.ts +0 -984
- package/packages/mailx-send/node_modules/@types/node/util.d.ts +0 -2606
- package/packages/mailx-send/node_modules/@types/node/v8.d.ts +0 -920
- package/packages/mailx-send/node_modules/@types/node/vm.d.ts +0 -1000
- package/packages/mailx-send/node_modules/@types/node/wasi.d.ts +0 -181
- package/packages/mailx-send/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
- package/packages/mailx-send/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
- package/packages/mailx-send/node_modules/@types/node/web-globals/events.d.ts +0 -97
- package/packages/mailx-send/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
- package/packages/mailx-send/node_modules/@types/node/web-globals/navigator.d.ts +0 -22
- package/packages/mailx-send/node_modules/@types/node/web-globals/storage.d.ts +0 -24
- package/packages/mailx-send/node_modules/@types/node/worker_threads.d.ts +0 -784
- package/packages/mailx-send/node_modules/@types/node/zlib.d.ts +0 -747
- package/packages/mailx-send/node_modules/undici-types/LICENSE +0 -21
- package/packages/mailx-send/node_modules/undici-types/README.md +0 -6
- package/packages/mailx-send/node_modules/undici-types/agent.d.ts +0 -31
- package/packages/mailx-send/node_modules/undici-types/api.d.ts +0 -43
- package/packages/mailx-send/node_modules/undici-types/balanced-pool.d.ts +0 -29
- package/packages/mailx-send/node_modules/undici-types/cache.d.ts +0 -36
- package/packages/mailx-send/node_modules/undici-types/client.d.ts +0 -108
- package/packages/mailx-send/node_modules/undici-types/connector.d.ts +0 -34
- package/packages/mailx-send/node_modules/undici-types/content-type.d.ts +0 -21
- package/packages/mailx-send/node_modules/undici-types/cookies.d.ts +0 -28
- package/packages/mailx-send/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
- package/packages/mailx-send/node_modules/undici-types/dispatcher.d.ts +0 -256
- package/packages/mailx-send/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
- package/packages/mailx-send/node_modules/undici-types/errors.d.ts +0 -149
- package/packages/mailx-send/node_modules/undici-types/eventsource.d.ts +0 -61
- package/packages/mailx-send/node_modules/undici-types/fetch.d.ts +0 -209
- package/packages/mailx-send/node_modules/undici-types/file.d.ts +0 -39
- package/packages/mailx-send/node_modules/undici-types/filereader.d.ts +0 -54
- package/packages/mailx-send/node_modules/undici-types/formdata.d.ts +0 -108
- package/packages/mailx-send/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/packages/mailx-send/node_modules/undici-types/global-origin.d.ts +0 -7
- package/packages/mailx-send/node_modules/undici-types/handlers.d.ts +0 -15
- package/packages/mailx-send/node_modules/undici-types/header.d.ts +0 -4
- package/packages/mailx-send/node_modules/undici-types/index.d.ts +0 -71
- package/packages/mailx-send/node_modules/undici-types/interceptors.d.ts +0 -17
- package/packages/mailx-send/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/packages/mailx-send/node_modules/undici-types/mock-client.d.ts +0 -25
- package/packages/mailx-send/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/packages/mailx-send/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/packages/mailx-send/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/packages/mailx-send/node_modules/undici-types/package.json +0 -55
- package/packages/mailx-send/node_modules/undici-types/patch.d.ts +0 -33
- package/packages/mailx-send/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/packages/mailx-send/node_modules/undici-types/pool.d.ts +0 -39
- package/packages/mailx-send/node_modules/undici-types/proxy-agent.d.ts +0 -28
- package/packages/mailx-send/node_modules/undici-types/readable.d.ts +0 -65
- package/packages/mailx-send/node_modules/undici-types/retry-agent.d.ts +0 -8
- package/packages/mailx-send/node_modules/undici-types/retry-handler.d.ts +0 -116
- package/packages/mailx-send/node_modules/undici-types/util.d.ts +0 -18
- package/packages/mailx-send/node_modules/undici-types/webidl.d.ts +0 -228
- package/packages/mailx-send/node_modules/undici-types/websocket.d.ts +0 -150
package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/sendmail-transport/index.js
DELETED
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const spawn = require('child_process').spawn;
|
|
4
|
-
const packageData = require('../../package.json');
|
|
5
|
-
const shared = require('../shared');
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Generates a Transport object for Sendmail
|
|
9
|
-
*
|
|
10
|
-
* Possible options can be the following:
|
|
11
|
-
*
|
|
12
|
-
* * **path** optional path to sendmail binary
|
|
13
|
-
* * **newline** either 'windows' or 'unix'
|
|
14
|
-
* * **args** an array of arguments for the sendmail binary
|
|
15
|
-
*
|
|
16
|
-
* @constructor
|
|
17
|
-
* @param {Object} optional config parameter for Sendmail
|
|
18
|
-
*/
|
|
19
|
-
class SendmailTransport {
|
|
20
|
-
constructor(options) {
|
|
21
|
-
options = options || {};
|
|
22
|
-
|
|
23
|
-
// use a reference to spawn for mocking purposes
|
|
24
|
-
this._spawn = spawn;
|
|
25
|
-
|
|
26
|
-
this.options = options || {};
|
|
27
|
-
|
|
28
|
-
this.name = 'Sendmail';
|
|
29
|
-
this.version = packageData.version;
|
|
30
|
-
|
|
31
|
-
this.path = 'sendmail';
|
|
32
|
-
this.args = false;
|
|
33
|
-
this.winbreak = false;
|
|
34
|
-
|
|
35
|
-
this.logger = shared.getLogger(this.options, {
|
|
36
|
-
component: this.options.component || 'sendmail'
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
if (options) {
|
|
40
|
-
if (typeof options === 'string') {
|
|
41
|
-
this.path = options;
|
|
42
|
-
} else if (typeof options === 'object') {
|
|
43
|
-
if (options.path) {
|
|
44
|
-
this.path = options.path;
|
|
45
|
-
}
|
|
46
|
-
if (Array.isArray(options.args)) {
|
|
47
|
-
this.args = options.args;
|
|
48
|
-
}
|
|
49
|
-
this.winbreak = ['win', 'windows', 'dos', '\r\n'].includes((options.newline || '').toString().toLowerCase());
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* <p>Compiles a mailcomposer message and forwards it to handler that sends it.</p>
|
|
56
|
-
*
|
|
57
|
-
* @param {Object} emailMessage MailComposer object
|
|
58
|
-
* @param {Function} callback Callback function to run when the sending is completed
|
|
59
|
-
*/
|
|
60
|
-
send(mail, done) {
|
|
61
|
-
// Sendmail strips this header line by itself
|
|
62
|
-
mail.message.keepBcc = true;
|
|
63
|
-
|
|
64
|
-
let envelope = mail.data.envelope || mail.message.getEnvelope();
|
|
65
|
-
let messageId = mail.message.messageId();
|
|
66
|
-
let args;
|
|
67
|
-
let sendmail;
|
|
68
|
-
let returned;
|
|
69
|
-
|
|
70
|
-
const hasInvalidAddresses = []
|
|
71
|
-
.concat(envelope.from || [])
|
|
72
|
-
.concat(envelope.to || [])
|
|
73
|
-
.some(addr => /^-/.test(addr));
|
|
74
|
-
if (hasInvalidAddresses) {
|
|
75
|
-
return done(new Error('Can not send mail. Invalid envelope addresses.'));
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
if (this.args) {
|
|
79
|
-
// force -i to keep single dots
|
|
80
|
-
args = ['-i'].concat(this.args).concat(envelope.to);
|
|
81
|
-
} else {
|
|
82
|
-
args = ['-i'].concat(envelope.from ? ['-f', envelope.from] : []).concat(envelope.to);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
let callback = err => {
|
|
86
|
-
if (returned) {
|
|
87
|
-
// ignore any additional responses, already done
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
returned = true;
|
|
91
|
-
if (typeof done === 'function') {
|
|
92
|
-
if (err) {
|
|
93
|
-
return done(err);
|
|
94
|
-
} else {
|
|
95
|
-
return done(null, {
|
|
96
|
-
envelope: mail.data.envelope || mail.message.getEnvelope(),
|
|
97
|
-
messageId,
|
|
98
|
-
response: 'Messages queued for delivery'
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
try {
|
|
105
|
-
sendmail = this._spawn(this.path, args);
|
|
106
|
-
} catch (E) {
|
|
107
|
-
this.logger.error(
|
|
108
|
-
{
|
|
109
|
-
err: E,
|
|
110
|
-
tnx: 'spawn',
|
|
111
|
-
messageId
|
|
112
|
-
},
|
|
113
|
-
'Error occurred while spawning sendmail. %s',
|
|
114
|
-
E.message
|
|
115
|
-
);
|
|
116
|
-
return callback(E);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
if (sendmail) {
|
|
120
|
-
sendmail.on('error', err => {
|
|
121
|
-
this.logger.error(
|
|
122
|
-
{
|
|
123
|
-
err,
|
|
124
|
-
tnx: 'spawn',
|
|
125
|
-
messageId
|
|
126
|
-
},
|
|
127
|
-
'Error occurred when sending message %s. %s',
|
|
128
|
-
messageId,
|
|
129
|
-
err.message
|
|
130
|
-
);
|
|
131
|
-
callback(err);
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
sendmail.once('exit', code => {
|
|
135
|
-
if (!code) {
|
|
136
|
-
return callback();
|
|
137
|
-
}
|
|
138
|
-
let err;
|
|
139
|
-
if (code === 127) {
|
|
140
|
-
err = new Error('Sendmail command not found, process exited with code ' + code);
|
|
141
|
-
} else {
|
|
142
|
-
err = new Error('Sendmail exited with code ' + code);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
this.logger.error(
|
|
146
|
-
{
|
|
147
|
-
err,
|
|
148
|
-
tnx: 'stdin',
|
|
149
|
-
messageId
|
|
150
|
-
},
|
|
151
|
-
'Error sending message %s to sendmail. %s',
|
|
152
|
-
messageId,
|
|
153
|
-
err.message
|
|
154
|
-
);
|
|
155
|
-
callback(err);
|
|
156
|
-
});
|
|
157
|
-
sendmail.once('close', callback);
|
|
158
|
-
|
|
159
|
-
sendmail.stdin.on('error', err => {
|
|
160
|
-
this.logger.error(
|
|
161
|
-
{
|
|
162
|
-
err,
|
|
163
|
-
tnx: 'stdin',
|
|
164
|
-
messageId
|
|
165
|
-
},
|
|
166
|
-
'Error occurred when piping message %s to sendmail. %s',
|
|
167
|
-
messageId,
|
|
168
|
-
err.message
|
|
169
|
-
);
|
|
170
|
-
callback(err);
|
|
171
|
-
});
|
|
172
|
-
|
|
173
|
-
let recipients = [].concat(envelope.to || []);
|
|
174
|
-
if (recipients.length > 3) {
|
|
175
|
-
recipients.push('...and ' + recipients.splice(2).length + ' more');
|
|
176
|
-
}
|
|
177
|
-
this.logger.info(
|
|
178
|
-
{
|
|
179
|
-
tnx: 'send',
|
|
180
|
-
messageId
|
|
181
|
-
},
|
|
182
|
-
'Sending message %s to <%s>',
|
|
183
|
-
messageId,
|
|
184
|
-
recipients.join(', ')
|
|
185
|
-
);
|
|
186
|
-
|
|
187
|
-
let sourceStream = mail.message.createReadStream();
|
|
188
|
-
sourceStream.once('error', err => {
|
|
189
|
-
this.logger.error(
|
|
190
|
-
{
|
|
191
|
-
err,
|
|
192
|
-
tnx: 'stdin',
|
|
193
|
-
messageId
|
|
194
|
-
},
|
|
195
|
-
'Error occurred when generating message %s. %s',
|
|
196
|
-
messageId,
|
|
197
|
-
err.message
|
|
198
|
-
);
|
|
199
|
-
sendmail.kill('SIGINT'); // do not deliver the message
|
|
200
|
-
callback(err);
|
|
201
|
-
});
|
|
202
|
-
|
|
203
|
-
sourceStream.pipe(sendmail.stdin);
|
|
204
|
-
} else {
|
|
205
|
-
return callback(new Error('sendmail was not found'));
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
module.exports = SendmailTransport;
|
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const EventEmitter = require('events');
|
|
4
|
-
const packageData = require('../../package.json');
|
|
5
|
-
const shared = require('../shared');
|
|
6
|
-
const LeWindows = require('../mime-node/le-windows');
|
|
7
|
-
const MimeNode = require('../mime-node');
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Generates a Transport object for AWS SES
|
|
11
|
-
*
|
|
12
|
-
* @constructor
|
|
13
|
-
* @param {Object} optional config parameter
|
|
14
|
-
*/
|
|
15
|
-
class SESTransport extends EventEmitter {
|
|
16
|
-
constructor(options) {
|
|
17
|
-
super();
|
|
18
|
-
options = options || {};
|
|
19
|
-
|
|
20
|
-
this.options = options || {};
|
|
21
|
-
this.ses = this.options.SES;
|
|
22
|
-
|
|
23
|
-
this.name = 'SESTransport';
|
|
24
|
-
this.version = packageData.version;
|
|
25
|
-
|
|
26
|
-
this.logger = shared.getLogger(this.options, {
|
|
27
|
-
component: this.options.component || 'ses-transport'
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
getRegion(cb) {
|
|
32
|
-
if (this.ses.sesClient.config && typeof this.ses.sesClient.config.region === 'function') {
|
|
33
|
-
// promise
|
|
34
|
-
return this.ses.sesClient.config
|
|
35
|
-
.region()
|
|
36
|
-
.then(region => cb(null, region))
|
|
37
|
-
.catch(err => cb(err));
|
|
38
|
-
}
|
|
39
|
-
return cb(null, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Compiles a mailcomposer message and forwards it to SES
|
|
44
|
-
*
|
|
45
|
-
* @param {Object} emailMessage MailComposer object
|
|
46
|
-
* @param {Function} callback Callback function to run when the sending is completed
|
|
47
|
-
*/
|
|
48
|
-
send(mail, callback) {
|
|
49
|
-
let statObject = {
|
|
50
|
-
ts: Date.now(),
|
|
51
|
-
pending: true
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
let fromHeader = mail.message._headers.find(header => /^from$/i.test(header.key));
|
|
55
|
-
if (fromHeader) {
|
|
56
|
-
let mimeNode = new MimeNode('text/plain');
|
|
57
|
-
fromHeader = mimeNode._convertAddresses(mimeNode._parseAddresses(fromHeader.value));
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
let envelope = mail.data.envelope || mail.message.getEnvelope();
|
|
61
|
-
let messageId = mail.message.messageId();
|
|
62
|
-
|
|
63
|
-
let recipients = [].concat(envelope.to || []);
|
|
64
|
-
if (recipients.length > 3) {
|
|
65
|
-
recipients.push('...and ' + recipients.splice(2).length + ' more');
|
|
66
|
-
}
|
|
67
|
-
this.logger.info(
|
|
68
|
-
{
|
|
69
|
-
tnx: 'send',
|
|
70
|
-
messageId
|
|
71
|
-
},
|
|
72
|
-
'Sending message %s to <%s>',
|
|
73
|
-
messageId,
|
|
74
|
-
recipients.join(', ')
|
|
75
|
-
);
|
|
76
|
-
|
|
77
|
-
let getRawMessage = next => {
|
|
78
|
-
// do not use Message-ID and Date in DKIM signature
|
|
79
|
-
if (!mail.data._dkim) {
|
|
80
|
-
mail.data._dkim = {};
|
|
81
|
-
}
|
|
82
|
-
if (mail.data._dkim.skipFields && typeof mail.data._dkim.skipFields === 'string') {
|
|
83
|
-
mail.data._dkim.skipFields += ':date:message-id';
|
|
84
|
-
} else {
|
|
85
|
-
mail.data._dkim.skipFields = 'date:message-id';
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
let sourceStream = mail.message.createReadStream();
|
|
89
|
-
let stream = sourceStream.pipe(new LeWindows());
|
|
90
|
-
let chunks = [];
|
|
91
|
-
let chunklen = 0;
|
|
92
|
-
|
|
93
|
-
stream.on('readable', () => {
|
|
94
|
-
let chunk;
|
|
95
|
-
while ((chunk = stream.read()) !== null) {
|
|
96
|
-
chunks.push(chunk);
|
|
97
|
-
chunklen += chunk.length;
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
sourceStream.once('error', err => stream.emit('error', err));
|
|
102
|
-
|
|
103
|
-
stream.once('error', err => {
|
|
104
|
-
next(err);
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
stream.once('end', () => next(null, Buffer.concat(chunks, chunklen)));
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
setImmediate(() =>
|
|
111
|
-
getRawMessage((err, raw) => {
|
|
112
|
-
if (err) {
|
|
113
|
-
this.logger.error(
|
|
114
|
-
{
|
|
115
|
-
err,
|
|
116
|
-
tnx: 'send',
|
|
117
|
-
messageId
|
|
118
|
-
},
|
|
119
|
-
'Failed creating message for %s. %s',
|
|
120
|
-
messageId,
|
|
121
|
-
err.message
|
|
122
|
-
);
|
|
123
|
-
statObject.pending = false;
|
|
124
|
-
return callback(err);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
let sesMessage = {
|
|
128
|
-
Content: {
|
|
129
|
-
Raw: {
|
|
130
|
-
// required
|
|
131
|
-
Data: raw // required
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
FromEmailAddress: fromHeader ? fromHeader : envelope.from,
|
|
135
|
-
Destination: {
|
|
136
|
-
ToAddresses: envelope.to
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
Object.keys(mail.data.ses || {}).forEach(key => {
|
|
141
|
-
sesMessage[key] = mail.data.ses[key];
|
|
142
|
-
});
|
|
143
|
-
|
|
144
|
-
this.getRegion((err, region) => {
|
|
145
|
-
if (err || !region) {
|
|
146
|
-
region = 'us-east-1';
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
const command = new this.ses.SendEmailCommand(sesMessage);
|
|
150
|
-
const sendPromise = this.ses.sesClient.send(command);
|
|
151
|
-
|
|
152
|
-
sendPromise
|
|
153
|
-
.then(data => {
|
|
154
|
-
if (region === 'us-east-1') {
|
|
155
|
-
region = 'email';
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
statObject.pending = true;
|
|
159
|
-
callback(null, {
|
|
160
|
-
envelope: {
|
|
161
|
-
from: envelope.from,
|
|
162
|
-
to: envelope.to
|
|
163
|
-
},
|
|
164
|
-
messageId: '<' + data.MessageId + (!/@/.test(data.MessageId) ? '@' + region + '.amazonses.com' : '') + '>',
|
|
165
|
-
response: data.MessageId,
|
|
166
|
-
raw
|
|
167
|
-
});
|
|
168
|
-
})
|
|
169
|
-
.catch(err => {
|
|
170
|
-
this.logger.error(
|
|
171
|
-
{
|
|
172
|
-
err,
|
|
173
|
-
tnx: 'send'
|
|
174
|
-
},
|
|
175
|
-
'Send error for %s: %s',
|
|
176
|
-
messageId,
|
|
177
|
-
err.message
|
|
178
|
-
);
|
|
179
|
-
statObject.pending = false;
|
|
180
|
-
callback(err);
|
|
181
|
-
});
|
|
182
|
-
});
|
|
183
|
-
})
|
|
184
|
-
);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* Verifies SES configuration
|
|
189
|
-
*
|
|
190
|
-
* @param {Function} callback Callback function
|
|
191
|
-
*/
|
|
192
|
-
verify(callback) {
|
|
193
|
-
let promise;
|
|
194
|
-
if (!callback) {
|
|
195
|
-
promise = new Promise((resolve, reject) => {
|
|
196
|
-
callback = shared.callbackPromise(resolve, reject);
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
const cb = err => {
|
|
201
|
-
if (err && !['InvalidParameterValue', 'MessageRejected'].includes(err.code || err.Code || err.name)) {
|
|
202
|
-
return callback(err);
|
|
203
|
-
}
|
|
204
|
-
return callback(null, true);
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
const sesMessage = {
|
|
208
|
-
Content: {
|
|
209
|
-
Raw: {
|
|
210
|
-
Data: Buffer.from('From: <invalid@invalid>\r\nTo: <invalid@invalid>\r\n Subject: Invalid\r\n\r\nInvalid')
|
|
211
|
-
}
|
|
212
|
-
},
|
|
213
|
-
FromEmailAddress: 'invalid@invalid',
|
|
214
|
-
Destination: {
|
|
215
|
-
ToAddresses: ['invalid@invalid']
|
|
216
|
-
}
|
|
217
|
-
};
|
|
218
|
-
|
|
219
|
-
this.getRegion((err, region) => {
|
|
220
|
-
if (err || !region) {
|
|
221
|
-
region = 'us-east-1';
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
const command = new this.ses.SendEmailCommand(sesMessage);
|
|
225
|
-
const sendPromise = this.ses.sesClient.send(command);
|
|
226
|
-
|
|
227
|
-
sendPromise.then(data => cb(null, data)).catch(err => cb(err));
|
|
228
|
-
});
|
|
229
|
-
|
|
230
|
-
return promise;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
module.exports = SESTransport;
|