I am unable to see or configure the mail settings for the newsletter. The settings page doesn’t show up in the settings menu and when I try to go there directly the page is blank. When I send a test mailer it uses direct mail, not mailgun.
My issue looked similar to this one, and I saw the same message.
- Updated from v3.10 to v3.42 and then to v4 (members beta was toggled off before update)
- Changed
config
mail settings fromDirect
toMailgun
(I’ve tried all combination of ports/secure transport options with same result).
"mail": {
"transport": "SMTP",
"options": {
"service": "Mailgun",
"auth": {
"user": "post@mail.prereview.org",
"pass": "[pass]"
}
}
},
- Restarted Ghost
- Tried to send test newsletter and got the error saying I need to configure mail settings.
- Ran the following sql:
select * from settings where `group` = 'email';
- And saw that mail settings were all set to
null
. - Tried deleting all those settings and restarting, they were set again to
null
- Manually set mail settings
mysql> select * from settings where `group` = 'email';
+--------------------------+-------------------+----------------------------------------------------+---------+---------------------+--------------------------+---------------------+--------------------------+-------+-------+
| id | key | value | type | created_at | created_by | updated_at | updated_by | group | flags |
+--------------------------+-------------------+----------------------------------------------------+---------+---------------------+--------------------------+---------------------+--------------------------+-------+-------+
| [id] | mailgun_domain | mail.prereview.org | string | 2021-03-18 01:35:56 | 5cbf8a6633f00a72f3a62f9c | 2021-03-18 01:35:56 | 5cbf8a6633f00a72f3a62f9c | email | NULL |
| [id] | mailgun_api_key | [mg api key] | string | 2021-03-18 01:35:56 | 5cbf8a6633f00a72f3a62f9c | 2021-03-18 01:35:56 | 5cbf8a6633f00a72f3a62f9c | email | NULL |
| [id] | mailgun_base_url | https://api.mailgun.net/v3 | string | 2021-03-18 01:35:56 | 5cbf8a6633f00a72f3a62f9c | 2021-03-18 01:35:56 | 5cbf8a6633f00a72f3a62f9c | email | NULL |
| [id] | email_track_opens | true | boolean | 2021-03-18 01:35:56 | 5cbf8a6633f00a72f3a62f9c | 2021-03-18 01:35:56 | 5cbf8a6633f00a72f3a62f9c | email | NULL |
+--------------------------+-------------------+----------------------------------------------------+---------+---------------------+--------------------------+---------------------+--------------------------+-------+-------+
4 rows in set (0.00 sec)
- What’s your URL? https://content.prereview.org
- What version of Ghost are you using? v4.0.1
And
- How was Ghost installed and configured?
- Via CLI
- What Node version, database, OS & browser are you using?
- Mysql, Node v12.21.0, Ubuntu