mirror of https://github.com/zulip/zulip.git
billing: Use no-reply address as from_address in sponsorship emails.
This commit is contained in:
parent
e22885a6bf
commit
108ad84944
|
@ -1092,7 +1092,8 @@ class StripeTest(StripeTestCase):
|
|||
self.assertEqual(len(message.to), 1)
|
||||
self.assertEqual(message.to[0], "desdemona+admin@zulip.com")
|
||||
self.assertEqual(message.subject, "Sponsorship request (Open-source) for zulip")
|
||||
self.assertEqual(message.from_email, f'{user.full_name} <{user.delivery_email}>')
|
||||
self.assertEqual(message.reply_to, ['hamlet@zulip.com'])
|
||||
self.assertIn('Zulip sponsorship <noreply-', message.from_email)
|
||||
self.assertIn("User role: Member", message.body)
|
||||
self.assertIn("Support URL: http://zulip.testserver/activity/support?q=zulip", message.body)
|
||||
self.assertIn("Website: https://infinispan.org", message.body)
|
||||
|
|
|
@ -217,8 +217,9 @@ def sponsorship(request: HttpRequest, user: UserProfile,
|
|||
send_email(
|
||||
"zerver/emails/sponsorship_request",
|
||||
to_emails=[FromAddress.SUPPORT],
|
||||
from_name=user.full_name,
|
||||
from_address=user.delivery_email,
|
||||
from_name="Zulip sponsorship",
|
||||
from_address=FromAddress.tokenized_no_reply_address(),
|
||||
reply_to_email=user.delivery_email,
|
||||
context=context,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue