fixthestatusquo / proca-server

Proca server, SDKs and services
https://proca.app
5 stars 3 forks source link

send a different email to duplicate signatories #220

Closed tttp closed 1 year ago

tttp commented 1 year ago

the aim is to be able to send a different email than the regular thank you one if the email address has already signed.

for performance and workflow reason, add the dupe_rank as a variable sent to the thank you email template might not be possible

a potential workaround is to have a different template/email and send it to a separate "duplicate" queue, so it would send the regular thank you email and a "error" email after

this is not as good as adding dupe_rank to the thank you email, but might do the trick

marcinkoziej commented 1 year ago

There is an {{isDupe}} variable given to email template.

marcinkoziej commented 1 year ago

updated the doc about this EmailMerge module

tttp commented 1 year ago

https://github.com/fixthestatusquo/proca-server/commit/40f8645b28794d1af8677ee725d75994ac0c2398