class ContactForm(Form):
    name = TextField('Name', validators=[InputRequired(
        'Please enter your name.')])
email = EmailField('Email', validators=[InputRequired(
    'Please enter your email address.'), Email(
    'Please enter your email address.')])
submit = SubmitField('Send')
Проверка электронной почты от WTForm с использованием Flask