Yes, my bad, after checking the config doc again I had the API config but had accidentally deleted the transport. Just checked with both configs and the corresponding errors are as follows:
For SMTP: config:
"mail": {
"from": "'...",
"transport": "SMTP",
"options": {
"service": "Mailgun",
"host": "smtp.mailgun.org",
"port": 2525,
"auth": {
"user": "...",
"pass": "..."
}
}
},
The error:
"name":"EmailError","statusCode":500,"level":"normal","message":"Error sending email: Failed to send email. Reason:
0078755A157F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version
number:../deps/openssl/openssl/ssl/record/ssl3_record.c:355:\n. Please check your email
settings and resend the invitation.","help":"\"Please see https://ghost.org/docs/config/#mail for
instructions on configuring email.\"","stack":"Error: 0078755A157F0000:error:0A00010B:SSL
routines:ssl3_get_record:wrong version
number:../deps/openssl/openssl/ssl/record/ssl3_record.c:355:\n.\n","hideStack":false},"msg":"E
rror sending email: Failed to send email. Reason: 0078755A157F0000:error:0A00010B:SSL
routines:ssl3_get_record:wrong version
number:../deps/openssl/openssl/ssl/record/ssl3_record.c:355:\n. Please check your email
settings and resend the invitation.","time":"2025-05-27T13:18:26.849Z","v":0}
and API: config:
"mail": {
"from": "'...",
"transport": "mailgun",
"options": {
"host": "<api.mailgun.net>",
"auth": {
"api_key": "<...>",
"domain": "<...>"
}
}
},
The error:
"err":{"id":"2188e810-3afe-11f0-bf6d-
7507c0ba3567","domain":"https://cigarron.com","code":"ERR_INVALID_URL","name":"Internal
ServerError","statusCode":500,"level":"critical","message":"Invalid URL","stack":"TypeError
[ERR_INVALID_URL]: Invalid URL\n at bootGhost
(/var/www/ghost/versions/5.120.2/core/boot.js:581:32)\n at new NodeError
(node:internal/errors:405:5)\n at new URL (node:internal/url:676:13)\n at transport
(/var/www/ghost/versions/5.120.2/node_modules/nodemailer-mailgun-
transport/src/index.js:141:26)\n at module.exports
(/var/www/ghost/versions/5.120.2/node_modules/@tryghost/nodemailer/lib/nodemailer.js:48:28
)\n at new GhostMailer
(/var/www/ghost/versions/5.120.2/core/server/services/mail/GhostMailer.js:103:26)\n at
Object.<anonymous>
(/var/www/ghost/versions/5.120.2/core/server/services/auth/session/index.js:39:16)\n at
Module._compile (node:internal/modules/cjs/loader:1364:14)\n at Module._extensions..js
(node:internal/modules/cjs/loader:1422:10)\n at Module.load
(node:internal/modules/cjs/loader:1203:32)\n at Module._load
(node:internal/modules/cjs/loader:1019:12)\n at Module.require
(node:internal/modules/cjs/loader:1231:19)\n at require
(node:internal/modules/helpers:177:18)\n at module.exports
(/var/www/ghost/versions/5.120.2/core/server/web/parent/backend.js:18:30)\n at
initExpressApps (/var/www/ghost/versions/5.120.2/core/boot.js:235:66)\n at bootGhost
(/var/www/ghost/versions/5.120.2/core/boot.js:538:32)","hideStack":false},"msg":"Invalid
URL","time":"2025-05-27T13:26:00.725Z","v":0}