send_report function, to send code and message

Signed-off-by: Thiago Rondon <thiago.rondon@gmail.com>