Commit af8ddfd
committed
🐛 Fixed welcome emails using noreply address instead of default newsletter reply-to address (#26358)
ref
https://linear.app/ghost/issue/NY-1028/welcome-email-uses-noreply-instead-of-configured-sender
## Problem
Welcome emails aren't currently respecting the sender info of the
default newsletter as intended. Instead, they are being sent with a
fallback `sender_name` and `sender_reply_to` address:
- For a site with custom sending domain, this is `noreply@example.com`
- For a site without a custom sending domain, this is
`subdomain@ghost.io`
## Fix
Welcome emails should use the sender info from the default newsletter's
settings, so that new members can reply directly to the welcome email
and the publisher will receive that email. This fix gets the settings
from the default newsletter, and passes this through to mailgun when
sending welcome emails (real ones and test emails).1 parent 9f6786c commit af8ddfd
File tree
3 files changed
+162
-5
lines changed- ghost/core
- core/server/services/member-welcome-emails
- test
- e2e-api/admin
- integration/services
3 files changed
+162
-5
lines changedLines changed: 77 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | | - | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
31 | 96 | | |
| 97 | + | |
| 98 | + | |
32 | 99 | | |
33 | 100 | | |
34 | 101 | | |
| |||
82 | 149 | | |
83 | 150 | | |
84 | 151 | | |
| 152 | + | |
| 153 | + | |
85 | 154 | | |
86 | 155 | | |
87 | 156 | | |
88 | 157 | | |
89 | 158 | | |
90 | | - | |
| 159 | + | |
| 160 | + | |
91 | 161 | | |
92 | 162 | | |
93 | 163 | | |
| |||
136 | 206 | | |
137 | 207 | | |
138 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
139 | 212 | | |
140 | 213 | | |
141 | 214 | | |
142 | 215 | | |
143 | 216 | | |
144 | | - | |
| 217 | + | |
| 218 | + | |
145 | 219 | | |
146 | 220 | | |
147 | 221 | | |
| |||
156 | 230 | | |
157 | 231 | | |
158 | 232 | | |
159 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
505 | 535 | | |
506 | 536 | | |
507 | 537 | | |
| |||
Lines changed: 55 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
22 | 35 | | |
23 | 36 | | |
24 | 37 | | |
| |||
58 | 71 | | |
59 | 72 | | |
60 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
61 | 84 | | |
62 | 85 | | |
63 | 86 | | |
| |||
349 | 372 | | |
350 | 373 | | |
351 | 374 | | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
352 | 407 | | |
353 | 408 | | |
354 | | - | |
| |||
0 commit comments