Removing sendemail bug