0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Improved sending email addresses for self-hosters (#19617)

ref https://github.com/TryGhost/Ghost/issues/12802
fixes DMA-27

- You can choose any support and newsletter email address in the UI
without verification (as long as your SMTP-server / Mailgun can send
from it)
- All emails will use the mail.from config as the from address as a
default:
- Staff notification emails no longer use the made up ghost@domain email
address
    - Newsletters no longer default to 'noreply@domain' 
- Member related emails (signin/signup/comment notifications...) will
continue to be send from the chosen support address (Portal settings →
Account page), but will now default to the mail.from config instead of
noreply@domain if no support address is set.
This commit is contained in:
Simon Backx 2024-01-30 11:21:08 +01:00 committed by GitHub
parent 68dda65a12
commit 7d0be3f1a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 5 deletions

View file

@ -22,7 +22,8 @@ const GA_FEATURES = [
'signupForm',
'recommendations',
'listUnsubscribeHeader',
'filterEmailDisabled'
'filterEmailDisabled',
'newEmailAddresses'
];
// NOTE: this allowlist is meant to be used to filter out any unexpected
@ -47,7 +48,6 @@ const ALPHA_FEATURES = [
// 'adminXOffers',
'filterEmailDisabled',
'adminXDemo',
'newEmailAddresses',
'portalImprovements'
];

View file

@ -1155,7 +1155,7 @@ exports[`Settings API Edit Can edit a setting 2: [headers] 1`] = `
Object {
"access-control-allow-origin": "http://127.0.0.1:2369",
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
"content-length": "4507",
"content-length": "4534",
"content-type": "application/json; charset=utf-8",
"content-version": StringMatching /v\\\\d\\+\\\\\\.\\\\d\\+/,
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,

View file

@ -240,8 +240,9 @@ test@example.com [test@example.com]"
exports[`Authentication API Blog setup complete setup 5: [metadata 1] 1`] = `
Object {
"encoding": "base64",
"from": "noreply@127.0.0.1",
"from": "\\"a test blog\\" <noreply@127.0.0.1>",
"generateTextFromHTML": true,
"replyTo": null,
"subject": "Your New Ghost Site",
"to": "test@example.com",
}
@ -518,8 +519,9 @@ test@example.com [test@example.com]"
exports[`Authentication API Blog setup complete setup with default theme 5: [metadata 1] 1`] = `
Object {
"encoding": "base64",
"from": "noreply@127.0.0.1",
"from": "\\"a test blog\\" <noreply@127.0.0.1>",
"generateTextFromHTML": true,
"replyTo": null,
"subject": "Your New Ghost Site",
"to": "test@example.com",
}

View file

@ -192,6 +192,7 @@ Object {
"forceTextContent": true,
"from": "\\"Ghost at 127.0.0.1\\" <noreply@example.com>",
"generateTextFromHTML": false,
"replyTo": null,
"subject": "Verify email address",
"to": "support@example.com",
}