fixed some bug and send receipt through Mandrill