added email sending, and secrets