Esempio n. 1
0
def send_collaboration_email_to_user(email):
	msg = Message('Collaboration Request', sender='*****@*****.**', recipients=[email])

	msg.body = f'''Thank you for registering in Zelf Karte. Your request for collaboration has been recieved. We will contact you within next 48 hrs. through email. Please stay updated. 
'''

	mail.send(msg)
Esempio n. 2
0
def send_collaboration_email(name, email, contact_number, address, x):
	msg = Message('Collaboration Request', sender='*****@*****.**', recipients=[x])

	msg.body = f'''A collaboration request is recieved from {name}.
Email: {email}
Contact number: {contact_number}
Address: {address}
'''

	mail.send(msg)
Esempio n. 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, visit the following link: 
{url_for('reset_token', token = token, _external=True)} within 30 minutes else the token will be expired.

If you did not request for password reset, simply ignore this mail. No changes will be made to your account.
'''

	mail.send(msg)