Skip to content

Commit

Permalink
Send from [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
ccunningham101 committed Jan 8, 2024
1 parent d1598ff commit c4008dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion retractions/management/commands/send_retraction_emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def _generate_mail(self, pairs, author, to_emails):
msg = OurEmail(
subject=subject,
body=body_plaintext,
from_email='"The RetractoBot Team, University of Oxford" <ben@retracted.net>',
from_email='"The RetractoBot Team, University of Oxford" <team@retracted.net>',
to=to_emails,
)
msg.attach_alternative(body, "text/html")
Expand Down
2 changes: 1 addition & 1 deletion retractions/tests/commands/test_retrieve_mailgun_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _inner_fake_get(url, auth):
"headers": {
"to": "Victor S. Tofu <[email protected]>",
"message-id": message_id,
"from": '"Ben Goldacre, University of Oxford" <ben@retracted.net>',
"from": '"Ben Goldacre, University of Oxford" <team@retracted.net>',
"subject": """RetractoBot: You cited a retracted paper in your
Frontiers in Tofu paper published in 2018""",
},
Expand Down
4 changes: 2 additions & 2 deletions retractions/tests/commands/test_send_retraction_emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_live_run_email_with_standard_citation(self):
self.assertEqual(email.track_clicks, True)
self.assertEqual(
email.from_email,
'"The RetractoBot Team, University of Oxford" <ben@retracted.net>',
'"The RetractoBot Team, University of Oxford" <team@retracted.net>',
)
self.assertEqual(email.recentest_citing_paper_id, "500000")
html = email.alternatives[0][0]
Expand Down Expand Up @@ -93,7 +93,7 @@ def test_live_run_email_with_standard_citation(self):
self.assertEqual(email.track_clicks, True)
self.assertEqual(
email.from_email,
'"The RetractoBot Team, University of Oxford" <ben@retracted.net>',
'"The RetractoBot Team, University of Oxford" <team@retracted.net>',
)
self.assertEqual(email.recentest_citing_paper_id, "500010")
html = email.alternatives[0][0]
Expand Down

0 comments on commit c4008dd

Please sign in to comment.