Переделал письмо
This commit is contained in:
parent
4931dd976b
commit
9055fe1f29
1 changed files with 2 additions and 9 deletions
|
@ -13,16 +13,12 @@ def create_registration_confirmation_template(
|
|||
email["Subject"] = "Подтверждение регистрации"
|
||||
email["From"] = settings.SMTP_USER
|
||||
email["To"] = email_to
|
||||
color = "color:red"
|
||||
|
||||
email.set_content(
|
||||
f"""
|
||||
<h1>{username}, лови аптечку</h1>
|
||||
<h1 style="background-color: red;">{username}, лови аптечку</h1>
|
||||
{confirmation_link}
|
||||
{confirmation_code}
|
||||
<style>
|
||||
h1 {color}
|
||||
</style>
|
||||
""",
|
||||
subtype="html",
|
||||
)
|
||||
|
@ -35,14 +31,11 @@ def create_data_change_confirmation_email(username: str, email_to: EmailStr, con
|
|||
email["Subject"] = "Подтверждение изменения данных"
|
||||
email["From"] = settings.SMTP_USER
|
||||
email["To"] = email_to
|
||||
color = "color:red"
|
||||
|
||||
email.set_content(
|
||||
f"""
|
||||
<h1>{username}, лови аптечку</h1>
|
||||
{confirmation_code}
|
||||
<style>
|
||||
h1 {color}
|
||||
</style>
|
||||
""",
|
||||
subtype="html",
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue