It considered bad practise to send mail through your own server. Instead a lot of people will use some form of SMTP, but STMP can be slow and its recommended that you use an API from a large provider. We've chosen Mailgun as they offer 10,000 emails for free per month - which should be enough for most sites.

Set Up

First sign up for an account at Mailgun. Once signed up you can go Domains -> Add Your Domain. If I was setting one up for I would enter into the box: You will be asked to make some changes to your DNS. Once these are completed you should see this at the top of your settings:

alt text

Now lets open the .env and you see some mailgun settings:


Lets update them with the info above.


And thats it! Your site will now be setup to use Mailgun to send emails.