Beispiel #1
0
def send_mail(to, subject, template, **kwargs):
    msg = Message(subject,
                  recipients=[to],
                  sender='*****@*****.**')
    msg.body = render_template(template + '.txt', **kwargs)
    msg.html = render_template(template + '.html', **kwargs)
    mail.send(msg)
Beispiel #2
0
def send_email(adress):

    msg = Message('Your RPA idea!!!',
                  sender='*****@*****.**',
                  recipients=[adress])
    msg.body = f'''BLA BLA  '''

    mail.send(msg)
Beispiel #3
0
def send_reset_email(user):
    token = user.get_reset_token()
    msg = Message('Password Reset Request',
                  sender='*****@*****.**',
                  recipients=[user.email])
    msg.body = f'''To reset your password, kindly visit: {url_for('users.reset', token = token, _external = True)}

Kindly ignore this email if you did not make this request'''
    mail.send(msg)
Beispiel #4
0
def send_reset_email(user):
    token = user.get_reset_token()
    msg = Message('Password Reset Request',
                  sender='*****@*****.**',
                  recipients=[user.email])
    msg.body = '''To reset your password, visit the following link:
    {y}
    If you did not make this request then simply ignore this email and no changes will be made.
    '''.format(y=url_for('reset_token', token=token, _external=True))
    mail.send(msg)
Beispiel #5
0
def send_reset_email(user):
    token = user.get_reset_token()
    msg = Message("Password Reset Request",
                  sender="*****@*****.**",
                  recipients=[user.email])
    msg.body = f'''To reset your password visit the following link:
{url_for('users.reset_token',token=token, _external=True)}

If you did not make this request please ignore this mail and no changes will take place
    '''
    mail.send(msg)
Beispiel #6
0
def send_reset_email(user):
    token = user.get_reset_token()
    msg = Message("Password Reset Request",
                  sender="*****@*****.**",
                  recipients=[user.email])

    msg.body = f'''To reset your password, visit the following link: 
{ url_for('users.reset_token', token=token, _external=True) }
    
If you did not make this request, then simply ignore the previous and no changes will be made
    '''
    mail.send(msg)