Код: Выделить всё
smtp_server = smtplib.SMTP("smtp.gmail.com", 587)
smtp_server.starttls()
smtp_server.login(email, password)
message = EmailMessage()
message["From"] = email
message["To"] = recipient
message["Subject"] = "Test"
with open("test.html", "r") as file:
text = file.read()
message.set_content(text, subtype="html")
smtp_server.send_message(message)
smtp_server.quit()
Код: Выделить всё
Title
.email-confirmation {
background-color: #fff;
display: flex;
max-width: 480px;
width: 100%;
flex-direction: column;
overflow: hidden;
color: #000;
margin: 0 auto;
padding: 91px 69px 330px;
font: 15px Inter, sans-serif;
}
.logo {
aspect-ratio: 7.81;
object-fit: contain;
object-position: center;
width: 179px;
align-self: center;
max-width: 100%;
}
.confirmation-title {
font-size: 20px;
font-weight: 600;
align-self: start;
margin-top: 51px;
}
.confirmation-message {
font-weight: 300;
margin-top: 24px;
}
.confirmation-code {
text-align: center;
border-radius: 30px;
background-color: #000;
align-self: center;
margin-top: 55px;
width: 215px;
max-width: 100%;
font-size: 35px;
color: #fff;
font-weight: 700;
padding: 7px 35px;
}
.signature {
font-weight: 500;
align-self: start;
margin-top: 40px;
}
[img]url[/img]
Подтверждение почты
Это письмо отправлено, чтобы
подтвердить электронную почту.
Если это были не Вы, проигнорируйте данное письмо.
Для завершения подтверждения -
вернитесь к боту и введите этот код.
173 586
С уважением, команда Bard!
Вид браузера

Вид Gmail

Что можно Что мне нужно сделать, чтобы решить эту проблему?
Подробнее здесь: https://stackoverflow.com/questions/790 ... -correctly