When

    \[{{\mathbf{x}}^{\mathbf{3}}}~+\text{ }\mathbf{3}{{\mathbf{x}}^{\mathbf{2}}}~\text{ }\mathbf{mx}\text{ }+\text{ }\mathbf{4}\]

is divided by

    \[\mathbf{x}\text{ }\text{ }\mathbf{2}\]

, the remainder is

    \[\mathbf{m}\text{ }+\text{ }\mathbf{3}\]

. Find the value of m.