Skip to content

Commit 0e7c655

Browse files
author
Franck
authored
Disable welcome email (#665)
1 parent edbc02c commit 0e7c655

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

views/web_views.py

+16-12
Original file line numberDiff line numberDiff line change
@@ -247,21 +247,25 @@ def join_mailing_list():
247247
email, first_name, last_name, ip_addr, country_code, "originprotocol.com"
248248
)
249249

250+
# Franck 11/8/2023: Commenting out this block of code since:
251+
# - The welcome email is now sent from ListMonk.
252+
# - Contact list management is also handled in ListMonk.
253+
250254
# If it is a new contact and not a backfill, send a welcome email.
251-
if new_contact and not backfill:
252-
log("Sending welcome email")
253-
mailing_list.send_welcome(email, source)
255+
#if new_contact and not backfill:
256+
# log("Sending welcome email")
257+
# mailing_list.send_welcome(email, source)
254258

255259
# Add the entry to the Sendgrid contact list.
256-
if new_contact:
257-
new_user = True
258-
log("Adding to Sendgrid contact list")
259-
mailing_list.add_sendgrid_contact(
260-
email=email,
261-
full_name=full_name,
262-
country_code=country_code,
263-
dapp_user=dapp_user,
264-
)
260+
#if new_contact:
261+
# new_user = True
262+
# log("Adding to Sendgrid contact list")
263+
# mailing_list.add_sendgrid_contact(
264+
# email=email,
265+
# full_name=full_name,
266+
# country_code=country_code,
267+
# dapp_user=dapp_user,
268+
# )
265269

266270
except Exception as err:
267271
log("Failure: %s" % err)

0 commit comments

Comments
 (0)