hcb icon indicating copy to clipboard operation
hcb copied to clipboard

[Recurring Donation] Disable `DonationMailer#donation_notification`. Replace with monthly summary email

Open garyhtou opened this issue 1 year ago • 2 comments

The DonationMailer#donation_notification gets quite repetitive for monthly donations.

Let's disable them. However, we should still send them for the 1st round of a recurring donation.

Then, at the end of each month, we'll send a monthly summary email of all donations (including recurring donations)

garyhtou avatar Oct 27 '24 04:10 garyhtou

https://github.com/hackclub/hcb/pull/8407

garyhtou avatar Nov 05 '24 06:11 garyhtou

Sarvesh is interested in taking this on!

garyhtou avatar Mar 26 '25 03:03 garyhtou

Hey Sarvesh, I'm going to assign this to @polypixeldev

garyhtou avatar Apr 10 '25 21:04 garyhtou

I'd recommend reading this guide about Mailers. Focus on sections 1, 2, 4 (first two paragraphs only), 5, 9, and skim 7.

As a first step, you’ll want to create a mailer called DonationMailer with an action called monthly_summary. It should probably take in a date parameter called month and an event (org). Then, the mailer will list all the one-off donations and recurring donations from that month, and summarize it in an email

garyhtou avatar Apr 10 '25 21:04 garyhtou