Setup Mail Using Google Servers
To setup mailing using Google's free mail server, ensure that your .env settings within your bookstack directory ( /var/www/bookstack/.env
) contains the below.
# The below url has to be set if using social auth options
# or if you are not using BookStack at the root path of your domain.
APP_URL=https://knoats.com/
#Mailsettings
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=email@gmail.com
MAIL_PASSWORD=password
MAIL_ENCRYPTION=tls
MAIL_FROM=email@gmail.com
If you have a firewall, be sure you open the port you enter on line 9 for MAIL_PORT
You must have HTTPS certificate and loadbalancer configured, if you are using DigitalOcean. See the links below.
https://www.digitalocean.com/docs/networking/load-balancers/how-to/lets-encrypt/
https://www.digitalocean.com/docs/networking/dns/how-to/manage-records/