mirror of https://github.com/zulip/zulip.git
support: Send demo request emails to sales@ email.
This commit is contained in:
parent
7a3d564b41
commit
da675cb641
|
@ -2378,7 +2378,7 @@ class StripeTest(StripeTestCase):
|
|||
|
||||
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)
|
||||
|
|
|
@ -23,6 +23,7 @@ from confirmation.models import Confirmation, confirmation_url
|
|||
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,
|
||||
|
@ -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"],
|
||||
|
|
Loading…
Reference in New Issue