-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NEW] add a modal dialog to warn the user about sending an email without a body #868
Conversation
I found that when the setting is disabled, I was shown a warning, and prevented from sending an email with an empty body. However, when the setting is enabled, trying to send an email with an empty body still crashes php. Here's the last error message.
|
I don't want one more setting. Just make it that there is warning to the user. |
IMHO, giving users the option is never a bad thing (especially when you can just "set it and forget it"), although I might just be saying that because of my use-case. Either way, the php crash is still happening in the background.
Jan 16, 2024 6:07:36 p.m. Marc Laporte ***@***.***>:
…
I don't want one more setting. Just make it that there is warning to the user.
—
Reply to this email directly, view it on GitHub[#868 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AC47L65NECIWOUF3MYKR4G3YO4W35AVCNFSM6AAAAABB3MOWL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJUHAYTSMBZGA].
You are receiving this because you commented.
[Tracking image][https://github.com/notifications/beacon/AC47L6274WYSNQLKHUZU6YLYO4W35A5CNFSM6AAAAABB3MOWL2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTQ6CSRE.gif]
|
Options are more code to maintain. It's one more thing to think about when testing or reporting issues. I can't think of a real-world use case where someone would regularly and intentionally send emails without a subject or body. |
You clearly don't work with some of my co-workers... lol Lots of subject-only emails flying around! Could a workaround be to pre-populate the email composer with the signature line? Then as long as the profile has a signature, there would always be something in the email body. |
Idea: The warning could be:
The third option would add a cookie to the user's browser. |
@PaulTGG which PHP version is your environment using? I did not get any such error when trying this on my side. Could it be related to your PHP version? |
Good. |
@jacob-js I'm using PHP 8.2.7. It's the latest version that's available in the Debian repositories. (Using Debian 12.4.) |
de702bc
to
8806837
Compare
Can you please try switching to version 7.4? |
I wasn't able to complete the install using PHP 7.4. It's not in the repository of Debian 12, and I tried Debian 11, but composer gave the following error:
Hopefully the PHP version isn't the issue, since 7.4 was end-of-life a little over a year ago! |
8806837
to
3d53c49
Compare
3d53c49
to
d040ce6
Compare
d040ce6
to
1865934
Compare
@PaulTGG By now, I'm certain you will not get that exception anymore using the PHP version you have. |
5aeae35
to
e7fc841
Compare
Just tried it, and everything looks good, thanks! |
…out a subject or body
e7fc841
to
cf8788a
Compare
Description
Add a warning prompt that's shown when the user is about to send an email with an empty body.
Issues