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
No email is sent when creating a new announcement #7213
Comments
Can take Announcement notification next for refactoring, which will fix this. |
Yes, I think that makes sense. This will be the case whenever the content of the event (announcement title/content) is the same as the body/subject of the email. The same would be true, for example, when a message is sent in a discussion. |
The old notification code is here: Introduction of an event could work. But it may be easier in the meantime to reintroduce this to the REST API handler. |
here the pull request @NateWr |
Merged to |
I applied the PR #7547 that, but my announcements still aren't being sent via e-mail. Nothing is reaching the SMTP server. Any ideias? |
I just tested this in the This is the code to debug if you want to find out what's happening on your server: pkp-lib/api/v1/announcements/PKPAnnouncementHandler.inc.php Lines 201 to 216 in acbcc6c
|
@NateWr, does that only work when creating a new Announcement or can I retroactively edit an Announcement and tick the box to send the e-mail (this is what I've done, because I didn't want to spam my users). If I cannot send an e-mail after the creation, I suggest that this check box be removed from the edit window to avoid confusion. |
Yeah it only works when creating an announcement. I'd suggest filing a new issue about the checkbox. |
I applied the PR #7547 that have 2 case.
A lot of receiver? |
hello, |
@mdsoft123456, please take questions like this to our support forum: https://forum.pkp.sfu.ca |
Describe the bug
If an announcement is created in OJS 3.3, and the check box for sending an email to all registered users is checked, no email is sent.
This appears to be because the API end point for creating an announcement doesn't do anything with the "sendEmail" form parameter. I've looked through the code and the path seems to be that the
add
method inPKPAnnouncementHandler
validates the request, and if it passes, theAnnouncementDAO
creates the new object and adds it via theService
and then returns with a200
status code. No notification or email is created.What application are you using?
OJS 3.3.0.7
Additional Information
There's a forum thread: https://forum.pkp.sfu.ca/t/announcement-mass-email-in-not-working-on-ojs-3-3-x/67472
The work around seems to be to use the Bulk Email feature in 3.3 and reposting the contents of the announcement.
The text was updated successfully, but these errors were encountered: