@cedarjs/mailer-handler-ahasend 7.0.0-canary.3261 → 7.0.1-next.307
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 +12 -6
- package/dist/index.d.ts.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -63,9 +63,15 @@ const ahasendClient = ahasendHandler.internal().client
|
|
|
63
63
|
You should be able to use this newly configured handler like any other previous
|
|
64
64
|
handler and it should require no changes to your mailer code.
|
|
65
65
|
|
|
66
|
-
Each email is sent as
|
|
67
|
-
|
|
68
|
-
recipients per email.
|
|
66
|
+
Each email is sent as one conversation: every `to` and `cc` recipient sees it
|
|
67
|
+
addressed to all of them, and `bcc` recipients are hidden from the others.
|
|
68
|
+
AhaSend allows at most 50 recipients per email.
|
|
69
|
+
|
|
70
|
+
AhaSend delivers a separate copy to each recipient, and each copy has its own
|
|
71
|
+
message ID. The `messageID` that `mailer.send()` returns is the ID of the first
|
|
72
|
+
accepted recipient's copy. To match a bounce, delivery event or reply to the
|
|
73
|
+
right recipient, use the per-recipient IDs in `handlerInformation` (see
|
|
74
|
+
[Error Handling](#error-handling)).
|
|
69
75
|
|
|
70
76
|
You can pass AhaSend specific options as the third argument to `mailer.send()`:
|
|
71
77
|
|
|
@@ -107,9 +113,9 @@ AhaSend accepts none of the recipients, with the per-recipient results as the
|
|
|
107
113
|
When AhaSend accepts some recipients and rejects others, for example because
|
|
108
114
|
they are on your suppression list, `mailer.send()` resolves. The email has
|
|
109
115
|
already been queued for the accepted recipients, so retrying the send would
|
|
110
|
-
deliver it to them a second time.
|
|
111
|
-
first accepted recipient's
|
|
112
|
-
for every recipient:
|
|
116
|
+
deliver it to them a second time. As for any send, the result's `messageID` is
|
|
117
|
+
the ID of the first accepted recipient's copy, and `handlerInformation` contains
|
|
118
|
+
the result for every recipient, including each copy's own message ID:
|
|
113
119
|
|
|
114
120
|
```typescript
|
|
115
121
|
const result = await mailer.send(/* ... */)
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,EAEV,oBAAoB,EAEpB,gCAAgC,EAEjC,MAAM,cAAc,CAAA;AAErB,OAAO,KAAK,EAEV,uBAAuB,EACvB,mBAAmB,EACnB,UAAU,EACX,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE1D,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAC1C,gCAAgC,EAChC,MAAM,GAAG,SAAS,GAAG,gBAAgB,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,CAC9E,GAAG;IACF;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAmHD,qBAAa,kBAAmB,SAAQ,mBAAmB;IACzD,OAAO,CAAC,MAAM,CAAe;IAE7B;;;OAGG;gBACS,OAAO,EAAE,oBAAoB;IAKnC,IAAI,CACR,OAAO,EAAE,mBAAmB,EAC5B,WAAW,EAAE,uBAAuB,EACpC,cAAc,CAAC,EAAE,yBAAyB,GACzC,OAAO,CAAC,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,EAEV,oBAAoB,EAEpB,gCAAgC,EAEjC,MAAM,cAAc,CAAA;AAErB,OAAO,KAAK,EAEV,uBAAuB,EACvB,mBAAmB,EACnB,UAAU,EACX,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE1D,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAC1C,gCAAgC,EAChC,MAAM,GAAG,SAAS,GAAG,gBAAgB,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,CAC9E,GAAG;IACF;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAmHD,qBAAa,kBAAmB,SAAQ,mBAAmB;IACzD,OAAO,CAAC,MAAM,CAAe;IAE7B;;;OAGG;gBACS,OAAO,EAAE,oBAAoB;IAKnC,IAAI,CACR,OAAO,EAAE,mBAAmB,EAC5B,WAAW,EAAE,uBAAuB,EACpC,cAAc,CAAC,EAAE,yBAAyB,GACzC,OAAO,CAAC,UAAU,CAAC;IA0EtB,QAAQ;;;CAKT"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/mailer-handler-ahasend",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.1-next.307",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@ahasend/sdk": "0.2.1",
|
|
27
|
-
"@cedarjs/mailer-core": "7.0.
|
|
27
|
+
"@cedarjs/mailer-core": "7.0.1-next.307"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@cedarjs/framework-tools": "7.0.
|
|
30
|
+
"@cedarjs/framework-tools": "7.0.1-next.307",
|
|
31
31
|
"typescript": "5.9.3",
|
|
32
32
|
"vitest": "4.1.11"
|
|
33
33
|
},
|