Skip to content

Commit 518eb75

Browse files
Hieu Lam - TMAkhangon
andauthored
feature-9011: Email Confirmation to Create Account show {app_name} in… (#9021)
* feature-9011: Email Confirmation to Create Account show {app_name} instead of showing actual app name * feature-9011: Email Confirmation to Create Account show {app_name} instead of showing actual app name * feature-9011: Email Confirmation to Create Account show {app_name} instead of showing actual app name --------- Co-authored-by: Khang On - TMA <[email protected]>
1 parent 163796a commit 518eb75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/api/helpers/mail.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,12 @@ def send_email_with_action(user, action, template_name, bcc=None, **kwargs):
137137
def send_email_confirmation(email, link):
138138
"""account confirmation"""
139139
action = MailType.USER_CONFIRM
140+
app_name = get_settings()['app_name']
140141
mail = MAILS[action]
141142
send_email(
142143
to=email,
143144
action=action,
144-
subject=mail['subject'],
145+
subject=mail['subject'].format(app_name=app_name),
145146
html=render_template(mail['template'], email=email, link=link),
146147
)
147148

0 commit comments

Comments
 (0)