apioo / fusio

Open source API management platform
https://www.fusio-project.org
Apache License 2.0
1.87k stars 223 forks source link

Registration Email Setup #445

Open stephbaxter opened 2 years ago

stephbaxter commented 2 years ago

Hi Chris Can you point me to any info on setting up the credentials to send user registration emails from my domain address, perhaps via my google account using api key etc. I could also use a local postfix (or similar) smtp server to relay them but would prefer not to introduce that dependency. Thx Stephanie

chriskapp commented 2 years ago

Hi Stephanie, sure so at the .env file you can configure the FUSIO_MAILER setting. By default it uses the settings configured at your php.ini but you can also configure an smtp server i.e. smtp://user:pass@smtp.example.com:25. In the background we use the symfony/mailer component so you can use also many other transports i.e. Gmail or SendGrid, please take a look at the documentation https://symfony.com/doc/current/mailer.html#using-built-in-transports for more information how to configure a specific transport.