mail not sending #1257

Closed
opened 2026-02-05 00:25:09 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @bugyak on GitHub (Jul 11, 2019).

Describe the bug
I set mail config in .env file but mail do not send
i set debug=true in .env file when mail do not send but no logs
the mail config copied from other laravel projet
version: latest release

Originally created by @bugyak on GitHub (Jul 11, 2019). **Describe the bug** I set mail config in .env file but mail do not send i set debug=true in .env file when mail do not send but no logs the mail config copied from other laravel projet version: latest release
OVERLORD added the 🐕 Support label 2026-02-05 00:25:09 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jul 15, 2019):

Hi @bugyak,
Sorry to hear you are having problems with email sending.
Are you hosting BookStack directly via Nginx/Apache are do you have a docker or reverse proxy setup?

Are you able to post any of your mail settings? You can omit any keys or usernames but other parameters would be helpful to see.

@ssddanbrown commented on GitHub (Jul 15, 2019): Hi @bugyak, Sorry to hear you are having problems with email sending. Are you hosting BookStack directly via Nginx/Apache are do you have a docker or reverse proxy setup? Are you able to post any of your mail settings? You can omit any keys or usernames but other parameters would be helpful to see.
Author
Owner

@Irrational-NX commented on GitHub (Jul 17, 2019):

Hello @ssddanbrown , let me add more info on this matter (I also had problem for sending mails)

Bookstack (v0.26.2) is working for me with Nginx.
I tried modifying everything in the .env file, but could not get a single mail out from the server using Office's SMTP. I did not found a single log either (from nginx or laravel logs)
But then... I modified this file : bookstack/config/mail.php
and bam. The mails were working fine.

@Irrational-NX commented on GitHub (Jul 17, 2019): Hello @ssddanbrown , let me add more info on this matter (I also had problem for sending mails) Bookstack (v0.26.2) is working for me with Nginx. I tried modifying everything in the .env file, but could not get a single mail out from the server using Office's SMTP. I did not found a single log either (from nginx or laravel logs) But then... I modified this file : bookstack/config/mail.php and bam. The mails were working fine.
Author
Owner

@ssddanbrown commented on GitHub (Jul 17, 2019):

@Irrational-NX Thanks for the input. Could be a case of people with cached configuration in that case then. Running php artisan config:clear from the app directory may help.

Just as a warning, the /config files are not intended to be edited and could cause issues on update (They'll be moving on next release).

@ssddanbrown commented on GitHub (Jul 17, 2019): @Irrational-NX Thanks for the input. Could be a case of people with cached configuration in that case then. Running `php artisan config:clear` from the app directory may help. Just as a warning, the `/config` files are not intended to be edited and could cause issues on update (They'll be moving on next release).
Author
Owner

@bugyak commented on GitHub (Jul 22, 2019):

@ssddanbrown php artisan config:clear works! but why it work?

@bugyak commented on GitHub (Jul 22, 2019): @ssddanbrown php artisan config:clear works! but why it work?
Author
Owner

@ssddanbrown commented on GitHub (Jul 22, 2019):

@bugyak 🎉 Glad to hear you got things working, Will therefore close this. Not sure why your config was cached. Will need to see if this happens automatically anywhere, Some artisan commands will cause config caching.

@ssddanbrown commented on GitHub (Jul 22, 2019): @bugyak :tada: Glad to hear you got things working, Will therefore close this. Not sure why your config was cached. Will need to see if this happens automatically anywhere, Some artisan commands will cause config caching.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1257