Unable to send a mail when MAIL_PASSWORD includes '#' #2374

Closed
opened 2026-02-05 03:51:56 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @mzch on GitHub (Sep 1, 2021).

Describe the bug
When MAIL_PASSWORD includes #, Bookstack will fail to send a mail.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Set password including # to MAIL_PASSWORD in .env
  2. Go to Settings -> Maintenance
  3. Click SEND TEST EMAIL
  4. See error

Expected behavior
Send a mail successfully

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): v21.0.8
  • PHP Version: 7.4
  • Hosting Method (Nginx/Apache/Docker): Apache

Additional context
When quoting password using single quotation mark ', Bookstack sends a mail successfully.

Originally created by @mzch on GitHub (Sep 1, 2021). **Describe the bug** When `MAIL_PASSWORD` includes `#`, Bookstack will fail to send a mail. **Steps To Reproduce** Steps to reproduce the behavior: 1. Set password including `#` to `MAIL_PASSWORD` in `.env` 2. Go to `Settings` -> `Maintenance` 3. Click `SEND TEST EMAIL` 4. See error **Expected behavior** Send a mail successfully **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings): v21.0.8 - PHP Version: 7.4 - Hosting Method (Nginx/Apache/Docker): Apache **Additional context** When quoting password using single quotation mark `'`, Bookstack sends a mail successfully.
Author
Owner

@ssddanbrown commented on GitHub (Sep 1, 2021):

Hi @mzch,

This is known and applies to any of the .env values. We have a notice at the top of the file for this:
https://github.com/BookStackApp/BookStack/blob/master/.env.example#L6-L7

@ssddanbrown commented on GitHub (Sep 1, 2021): Hi @mzch, This is known and applies to any of the `.env` values. We have a notice at the top of the file for this: https://github.com/BookStackApp/BookStack/blob/master/.env.example#L6-L7
Author
Owner

@mzch commented on GitHub (Sep 1, 2021):

Oh, I missed it. Thans @ssddanbrown !

@mzch commented on GitHub (Sep 1, 2021): Oh, I missed it. Thans @ssddanbrown !
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2374