Merge pull request #113 from sartography/fix/error-collection-on-mails

Adding bcc to all emails sent
This commit is contained in:
Carlos López 2020-06-08 11:31:13 -06:00 committed by GitHub
commit 29dc3ecfe5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 6 deletions

View File

@ -10,7 +10,8 @@ def send_ramp_up_submission_email(sender, recipients, approver_1, approver_2=Non
try:
msg = Message('Research Ramp-up Plan Submitted',
sender=sender,
recipients=recipients)
recipients=recipients,
bcc=['rrt_emails@googlegroups.com'])
from crc import env, mail
template = env.get_template('ramp_up_submission.txt')
@ -27,7 +28,8 @@ def send_ramp_up_approval_request_email(sender, recipients, primary_investigator
try:
msg = Message('Research Ramp-up Plan Approval Request',
sender=sender,
recipients=recipients)
recipients=recipients,
bcc=['rrt_emails@googlegroups.com'])
from crc import env, mail
template = env.get_template('ramp_up_approval_request.txt')
@ -44,7 +46,8 @@ def send_ramp_up_approval_request_first_review_email(sender, recipients, primary
try:
msg = Message('Research Ramp-up Plan Approval Request',
sender=sender,
recipients=recipients)
recipients=recipients,
bcc=['rrt_emails@googlegroups.com'])
from crc import env, mail
template = env.get_template('ramp_up_approval_request_first_review.txt')
@ -61,7 +64,8 @@ def send_ramp_up_approved_email(sender, recipients, approver_1, approver_2=None)
try:
msg = Message('Research Ramp-up Plan Approved',
sender=sender,
recipients=recipients)
recipients=recipients,
bcc=['rrt_emails@googlegroups.com'])
from crc import env, mail
template = env.get_template('ramp_up_approved.txt')
@ -78,7 +82,8 @@ def send_ramp_up_denied_email(sender, recipients, approver):
try:
msg = Message('Research Ramp-up Plan Denied',
sender=sender,
recipients=recipients)
recipients=recipients,
bcc=['rrt_emails@googlegroups.com'])
from crc import env, mail
template = env.get_template('ramp_up_denied.txt')
@ -95,7 +100,8 @@ def send_ramp_up_denied_email_to_approver(sender, recipients, primary_investigat
try:
msg = Message('Research Ramp-up Plan Denied',
sender=sender,
recipients=recipients)
recipients=recipients,
bcc=['rrt_emails@googlegroups.com'])
from crc import env, mail
template = env.get_template('ramp_up_denied_first_approver.txt')