fixed error sending email