> ## Content Index
> Fetch the complete content index at: https://lucas-schiavini.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Send Magic Link 500 - Ghost Mail Error - Ghost unable to send emails
- URL: https://lucas-schiavini.com/send-magic-link-500-ghost-mail-error/
- Published: 2022-08-21T22:48:25.000Z
- Updated: 2022-08-23T12:03:14.000Z
- Author: Lucas Schiavini
- Tags: ghost, error, #Import 2026-08-11 14:49

So after updating to the 5.10 version of ghost to get some native comment functionality, my email sending capacity broke down.

I started getting 500 from the /send-magic-link HTTPS call. 

But thanks to this [thread](https://forum.ghost.org/t/ghost-unable-to-send-emails/9934?ref=lucas-schiavini.com) I managed to sort it out again.

Here's the latest ***config.production.json*** that worked for me.

```json
 "mail": {
    "from": "<EMAIL>",
    "transport": "SMTP",
    "options": {
      "service": "Mailgun",
      "host": "smtp.mailgun.org",
      "port": 465,
      "secure": true,
      "auth": {
        "user": "<USER>",
        "pass": "<PASS>"
      }
    }
  },
  "tls": {
    "rejectUnauthorized": false
  },
```

Thanks to this dude here for the solution: [https://forum.ghost.org/t/ghost-unable-to-send-emails/9934/33](https://forum.ghost.org/t/ghost-unable-to-send-emails/9934/33?ref=lucas-schiavini.com)