code4romania/impreuna-pentru-sanatate

Updates on email to admin when help resource is added.

Closed this issue · 4 comments

With this issue we need to address the following two aspects:

  • Correct the link in HelpResourceInfoAdminMail email, where we set the ID of resource instead of the id of the help resource type. In this case if there are multiple help resources the user has to offer in an entry, we need to add different links for each of them in the email.
  • Send this email to ovidiu.dinica@asociatiamame.com as well.

Done on development branch.
Make sure to add CC_MAIL_TO_HELP_ADDRESS=ovidiu.dinica@asociatiamame.com to .env

@andreipetcu please update deployment scripts to set CC_MAIL_TO_HELP_ADDRESS with value from the following Github Secrets:
DEV_CC_MAIL_TO_HELP_ADDRESS for dev server
PROD_CC_MAIL_TO_HELP_ADDRESS for production.

Also, we need to send only one email with multiple links in case there are more resource. It looks like now we are sending one email for each resource.

Done

Released. Great success!