Skip to content

Commit caa84b4

Browse files
author
hamin
committed
email to admin on registration
1 parent 2455174 commit caa84b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

myapp/email.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def send_validate_email(user, step="user"):
6666
if step=="user":
6767
send_email(f'Welcome to {APP_TITLE}!',
6868
sender=app.config['MAIL_USERNAME_ADDRESS'],
69-
recipients=[user.email],
69+
recipients=[user.email, app.config['MAIL_USERNAME_ADDRESS']],
7070
text_body=render_template('email/validate_email.txt',
7171
user=user, token=token, app_name=APP_TITLE, app_url=APP_URL),
7272
html_body=render_template('email/validate_email.html',

0 commit comments

Comments
 (0)