send msg by account function