已知函数y=(x^2+mx+3)/(x+n)的值域是(-oo,-2]U[4,+oo),求m,n