@cedarjs/mailer-handler-ahasend 7.0.0-canary.3261 → 8.0.0-canary.3263

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
@@ -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 a single message that all `to`, `cc` and `bcc` recipients
67
- share, with `bcc` recipients hidden from the others. AhaSend allows at most 50
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. The result's `messageID` is the ID of the
111
- first accepted recipient's message, and `handlerInformation` contains the result
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(/* ... */)
@@ -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,gC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,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.0-canary.3261",
3
+ "version": "8.0.0-canary.3263",
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.0-canary.3261"
27
+ "@cedarjs/mailer-core": "8.0.0-canary.3263"
28
28
  },
29
29
  "devDependencies": {
30
- "@cedarjs/framework-tools": "7.0.0-canary.3261",
30
+ "@cedarjs/framework-tools": "8.0.0-canary.3263",
31
31
  "typescript": "5.9.3",
32
32
  "vitest": "4.1.11"
33
33
  },