Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable welcome email #665

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions views/web_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,21 +247,25 @@ def join_mailing_list():
email, first_name, last_name, ip_addr, country_code, "originprotocol.com"
)

# Franck 11/8/2023: Commenting out this block of code since:
# - The welcome email is now sent from ListMonk.
# - Contact list management is also handled in ListMonk.

# If it is a new contact and not a backfill, send a welcome email.
if new_contact and not backfill:
log("Sending welcome email")
mailing_list.send_welcome(email, source)
#if new_contact and not backfill:
# log("Sending welcome email")
# mailing_list.send_welcome(email, source)

# Add the entry to the Sendgrid contact list.
if new_contact:
new_user = True
log("Adding to Sendgrid contact list")
mailing_list.add_sendgrid_contact(
email=email,
full_name=full_name,
country_code=country_code,
dapp_user=dapp_user,
)
#if new_contact:
# new_user = True
# log("Adding to Sendgrid contact list")
# mailing_list.add_sendgrid_contact(
# email=email,
# full_name=full_name,
# country_code=country_code,
# dapp_user=dapp_user,
# )

except Exception as err:
log("Failure: %s" % err)
Expand Down
Loading