If the MAIL_FROM_NAME contains spaces it breaks Bookstack #1854

Closed
opened 2026-02-05 02:03:14 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @ItsNoted on GitHub (Sep 18, 2020).

Describe the bug
If the MAIL_FROM_NAME contains spaces it breaks Bookstack

Steps To Reproduce
Steps to reproduce the behavior:

  1. Edit the .env file and change the MAIL_FROM_NAME
  2. Refresh site
  3. White page until changed back to name without spaces
Originally created by @ItsNoted on GitHub (Sep 18, 2020). **Describe the bug** If the MAIL_FROM_NAME contains spaces it breaks Bookstack **Steps To Reproduce** Steps to reproduce the behavior: 1. Edit the .env file and change the MAIL_FROM_NAME 2. Refresh site 4. White page until changed back to name without spaces
Author
Owner

@mr-vinn commented on GitHub (Sep 19, 2020):

It sounds like you need to quote the MAIL_FROM_NAME value, like this:

MAIL_FROM_NAME='BookStack Notifications'
@mr-vinn commented on GitHub (Sep 19, 2020): It sounds like you need to quote the `MAIL_FROM_NAME` value, like this: ``` MAIL_FROM_NAME='BookStack Notifications' ```
Author
Owner

@ssddanbrown commented on GitHub (Sep 19, 2020):

Thanks for providing the solution @mr-vinn.

Does that work for you @nashosted? Have tested on my side to confirm it does on my dev setup.

I've updated the default .env file with some commentary to explain this to hopefully help people avoid getting confused about this in the future.

@ssddanbrown commented on GitHub (Sep 19, 2020): Thanks for providing the solution @mr-vinn. Does that work for you @nashosted? Have tested on my side to confirm it does on my dev setup. I've [updated the default .env file with some commentary](https://github.com/BookStackApp/BookStack/commit/9e11fc33fa6cf657b35af97a268210ec447c59a7) to explain this to hopefully help people avoid getting confused about this in the future.
Author
Owner

@ssddanbrown commented on GitHub (Oct 13, 2020):

Will therefore close off this issue.

If the issue remains even with the solutions above please make some noise on this issue or feel free to create a new one.

@ssddanbrown commented on GitHub (Oct 13, 2020): Will therefore close off this issue. If the issue remains even with the solutions above please make some noise on this issue or feel free to create a new one.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1854