Local Emails
Last modified on Mon 19 Feb 2024

To avoid spamming or sending emails from your local enviroment to the real world users you should always setup your local enviroment to use a local mail server. We recommend using Mailpit.

Installation for any of these services is really easy and you can find the instructions on their official websites.

After the installation you should configure your local enviroment to use the local mail server by updating your php.ini file with the following settings:

sendmail_path = '/opt/homebrew/bin/mailpit sendmail'