from random import choice import string, os from email.mime.text import MIMEText import smtplib from ythub.local_config import smtp_user, smtp_host, smtp_address, smtp_pass pw_recovery_template = r""" Hi there! Your password on the yt Data Hub ( https://hub.yt-project.org/ ) has been reset. A temporary password has been issued to you: %s Please visit the user login page to log in and reset your password: https://hub.yt-project.org/login Thanks, yt data hub """ new_user_notice = r""" Hi there! A new user has been created on the yt Data Hub: Username: %(username)s Name: %(name)s E-mail: %(email)s Thanks, yt data hub """ welcome_notice = r""" Hi %(name)s, Welcome to the yt Hub. Your username is %(username)s , and you can log in at http://hub.yt-project.org/ to get your API key. Be sure to check out the Getting Started section for how to upload images, data and maps. Thanks, yt data hub """