def send_drip_email(profile, drip_milestone):
    status = "started"    
    if os.getenv("ENVIRONMENT", "testing") == "production":
        email = profile.email
    else:
        email = "heather@impactstory.org"

    email_context = drip_email_context(profile, drip_milestone)
    msg = emailer.send(email, email_context["subject"], email_context["template"], email_context)
    status = "email sent"    
    logger.info(u"SENT EMAIL to {url_slug}!!".format(url_slug=profile.url_slug))

    return status
dataset/ETHPy150Open Impactstory/total-impact-webapp/tasks.py/send_drip_email/original