10 Commits

Author SHA1 Message Date
daveoconnor
5f022aca0a Upgrade django to 5.2, python to 3.13 (#1915) 2025-10-22 13:24:26 -07:00
Greg Kaleka
21e38f11d3 Gmail display fix for news moderation email (#1622) 2025-02-06 10:12:35 -05:00
Greg Kaleka
7468f54199 News moderation email magic links (#1600) 2025-01-15 14:54:28 -05:00
Greg Kaleka
db51e54bed Send individual emails to each notified user (#1429)
Fixes #1428

Previously, we sent a single email with all recipients in the `bcc`
field, and no one in the `to` field. Mailgun does not support this.

This PR changes that behavior to send an email to each user using
Django's `send_messages` (plural) method.

Note: I wasn't able to confirm this in the Mailgun documentation, but I
assume this should not have any cost implications. Sending a "single"
email with 100 `bcc` recipients should cost the same as sending 100
emails each with a single `to` recipient.

Another note: I did not test performance of this with many recipients.
Probably all of our notification emails should be getting sent in a
Celery task... probably a future optimization.

---------

Co-authored-by: Greg Kaleka <gkaleka@energy-solution.com>
2024-11-11 12:53:36 -05:00
Lacey Williams Henschel
c25401a6b5 Mark special chars safe in emails 2023-12-05 12:53:57 -08:00
Lacey Williams Henschel
69565648b0 Remove preferences url, old profile templates 2023-08-08 12:19:46 -07:00
Natalia
36a61d064a Send emails when a news is posted (using notification preferences accordingly). 2023-06-22 19:23:16 -03:00
Natalia
06cd04f263 Expose view for user preferences (email notifications so far).
Added tests for the new form and view for updating user preferences.
2023-06-20 12:24:40 -03:00
Natalia
80eae90184 Initial model for User's preferences, specifically for email notifications.
Part of #343. The news' notifications module was also changed to the user
preferences is honored when sending news emails.

Also exclude migrations from the black check.
2023-06-16 13:00:16 -03:00
Natalia
96aabf4412 Send email notifications for news approcal and moderation (Part of #343)
This work includes the adding of helpers to send emails (new notifications
module).
2023-06-07 12:04:32 -03:00