updated email sending