added email sending prepare structure