send email fixed bug