Skip to content

Commit

Permalink
support: Send demo request emails to sales@ email.
Browse files Browse the repository at this point in the history
  • Loading branch information
amanagr authored and timabbott committed May 2, 2024
1 parent 7a3d564 commit da675cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion corporate/tests/test_stripe.py
Original file line number Diff line number Diff line change
Expand Up @@ -2378,7 +2378,7 @@ def test_demo_request(self) -> None:

for message in outbox:
self.assert_length(message.to, 1)
self.assertEqual(message.to[0], "desdemona+admin@zulip.com")
self.assertEqual(message.to[0], "sales@zulip.com")
self.assertEqual(message.subject, "Demo request for Zulip")
self.assertEqual(message.reply_to, ["test@zulip.com"])
self.assertEqual(self.email_envelope_from(message), settings.NOREPLY_EMAIL_ADDRESS)
Expand Down
5 changes: 3 additions & 2 deletions corporate/views/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from confirmation.settings import STATUS_USED
from corporate.lib.activity import format_optional_datetime, remote_installation_stats_link
from corporate.lib.stripe import (
BILLING_SUPPORT_EMAIL,
RealmBillingSession,
RemoteRealmBillingSession,
RemoteServerBillingSession,
Expand Down Expand Up @@ -176,10 +177,10 @@ def demo_request(request: HttpRequest) -> HttpResponse:
"expected_user_count": form.cleaned_data["expected_user_count"],
"message": form.cleaned_data["message"],
}
# Sent to the server's support team, so this email is not user-facing.
# Sent to the server's sales team, so this email is not user-facing.
send_email(
"zerver/emails/demo_request",
to_emails=[FromAddress.SUPPORT],
to_emails=[BILLING_SUPPORT_EMAIL],
from_name="Zulip demo request",
from_address=FromAddress.tokenized_no_reply_address(),
reply_to_email=email_context["email"],
Expand Down

0 comments on commit da675cb

Please sign in to comment.