fixed email backend; added mixpanel tracking