def send_password_reset_email(email, host, reset_key):
 email_from = ('Daemo Team <%s>' % settings.EMAIL_SENDER)
 email_to = email
 subject = 'Daemo Password Reset'
 reset_url = ((('http://' + host) + '/reset-password/') + reset_key)
 text_content = (((('Hello, \n Please reset your password using the following link: \n' + reset_url) + '/1                    \nIf you did not request a password reset please click the following link: ') + reset_url) + '/0                    \nGreetings, \nDaemo Team')
 html_content = ((((((((((((('<h3>Hello,</h3><p>Please reset your password using the following link: <br><a href="' + reset_url) + '/1') + '">') + reset_url) + '/1') + "</a></p>                    <br><p>If you didn't request a password reset please click the following link: <br>") + '<a href="') + reset_url) + '/0') + '">') + reset_url) + '/0') + '</a><br><br> Greetings,<br> <strong>Daemo Team</strong>')
 send_mail(email_from, email_to, subject, text_content, html_content)

def send_password_reset_email ( email , host , reset_key ) : email_from = ( 'Daemo Team <%s>' % settings . EMAIL_SENDER ) email_to = email subject = 'Daemo Password Reset' reset_url = ( ( ( 'http://' + host ) + '/reset-password/' ) + reset_key ) text_content = ( ( ( ( 'Hello, \n Please reset your password using the following link: \n' + reset_url ) + '/1                    \nIf you did not request a password reset please click the following link: ' ) + reset_url ) + '/0                    \nGreetings, \nDaemo Team' ) html_content = ( ( ( ( ( ( ( ( ( ( ( ( ( '<h3>Hello,</h3><p>Please reset your password using the following link: <br><a href="' + reset_url ) + '/1' ) + '">' ) + reset_url ) + '/1' ) + "</a></p>                    <br><p>If you didn't request a password reset please click the following link: <br>" ) + '<a href="' ) + reset_url ) + '/0' ) + '">' ) + reset_url ) + '/0' ) + '</a><br><br> Greetings,<br> <strong>Daemo Team</strong>' ) send_mail ( email_from , email_to , subject , text_content , html_content )
this sends the email to the user the email includes two links .