def send_activation_email(email, host, activation_key):
    email_from = settings.EMAIL_SENDER % 'Daemo Team <%s>'
    email_to = email
    subject = 'Daemo Account Activation'
    activation_url = 'http://' + host + '/account-activation/' + activation_key
    text_content = 'Hello, \n ' \
                   'Activate your account by clicking the following link: \n' + activation_url + \
                   '\nGreetings, \nDaemo Team'

    html_content = '<h3>Hello,</h3>' \
                   '<p>Activate your account by clicking the following link: <br>' \
                   '<a href="' + activation_url + '">' + activation_url \
                   + '</a></p>' + '<br><br> Greetings,<br> <strong>Daemo Team</strong>'

    send_mail(email_from, email_to, subject, text_content, html_content)
dataset/ETHPy150Open crowdresearch/crowdsource-platform/crowdsourcing/emails.py/send_activation_email/swapped operands of `%`