Shraddha Shahari - Fix the inability to send out emails from send emails tab#3148
Conversation
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
AurHubertMax
left a comment
There was a problem hiding this comment.
I could not find/recreate the Send Emails button as it does not show up for me. I accessed it using an admin account and I've re-fetched and installed all the dependencies in the branch multiple times as well. Is there something I'm missing?
2-Click.Screen.Recorder-20250211-180324.500.mp4
|
AurHubertMax |
I noticed that sending emails seems to work only for users with the owner role. I was logged in with an admin account, and when reviewing the announcement permissions, I saw that sending emails isn’t available for admins (as shown below). Would it be possible to update step 4 in the description to reflect this? Thank you! 2-Click.Screen.Recorder-20250212-150642.499.mp4 |
|
Srichand-Medagani, You can do inspect page and check what is the exact issue. (Also check screen recording I uploaded recently, in the description.) |
There was a problem hiding this comment.
Followed instructions, error showing as expected.
Summary of conditions tested:
- Tried sending email without header
- Tried sending email with header (results in server error, but is out of this fix's scope)
- Checked payload to make sure all the data was correct
- Tested sending email in development branch to confirm server error when sending email not only happens in this branch
2-Click.Screen.Recorder-20250214-194900.785.mp4
confirmed that the sending email server error persists in the development branch:
jeyanthi-sm
left a comment
There was a problem hiding this comment.
Tested the following functionalities:
Sending emails from the "Send Emails" tab.
When trying to send an email without specifying a sender, the correct error message is displayed.
Sending an email without attaching a file works fine.
However, it fails with the error message "Error sending email" when one or more email addresses are provided along with an uploaded file.
The "Send Email" functionality is available only for the Owner and not for the Admin user.
|
I've logged in as an owner user and tried to send emails without any attachment, the correct error message is displayed. 3148Video.mov |
@jeyanthi-sm , Can you please add the exact error logs? so that I can look into it, because this issue is not related to my code changes. And this functionality is working fine at my end. |
@koushi1906 , Can you please add the error logs? so that I can look into it, because this issue is not related to my code changes. And this functionality is working fine at my end. |
I looked in the code and the given functionality, the issue you said is not related to my code changes. And this functionality is working fine at my end.











Description
Shraddha fix send out emails from send emails tab: If user don't provide correct "request body" for example: does not upload a file, then the user request was failing with generic error "Error sending email" and 400 error code.
Added validation check for upload file before sending an email, if user don't upload a file it will show an error "Please upload a file" after uploading file it proceed with the request and will send email successfully.
Fixes #
Added validation check for "Upload Header (or footer)" field (file upload) before sending an email.
Related PRS (if any):
N/A
…
Main changes explained:
…
How to test:
npm installand...to run this PR locallyScreenshots or videos of changes:
Screen recording:
Screen.Recording-PR3148.mov
Before fix error screenshot:

After fix correct error is shown:

Note:
Logged in user should have "Send email" permissions.
steps to check if user have permission or not:
1.Dashboard-> Other-Links-> Permissions Management
2.Select user role-> Announcement-> Send emails