From 550d704188e1972f4acebf392194a8487a63d1c7 Mon Sep 17 00:00:00 2001 From: Franck Chastagnol Date: Wed, 8 Nov 2023 09:00:07 -0800 Subject: [PATCH] Disable welcome email --- views/web_views.py | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/views/web_views.py b/views/web_views.py index b047ec364..089e68474 100644 --- a/views/web_views.py +++ b/views/web_views.py @@ -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)