simply thinking
$$e^x = 1 + x + O(x^2) \quad (x\to0)$$
so
$$\left(e^{\frac1{x}}+\frac1{x}\right)^x =\left(1+\frac2{x}+O(x^{-2})\right)^x\to e^2 \quad (x\to\infty)$$
edit for some supplement, in general
if you meet $(1+x+o(x))^{\frac1{x}}$ type limitation for $x\to0$
you always have
$$\frac1{x}\ln(1+x+o(x))=\frac1{x}(x+o(x)+o(x+o(x)))\to1$$
hence you will produce $e$ in result. in your case, you write
$$\left(1+\frac2{x}+O(x^{-2})\right)^x=\left(1+\frac2{x}+O(x^{-2})\right)^{\frac{x}{2}\cdot2}$$ leads to $e^2$
moreover $(1+f(x)+o(f(x)))^{\frac1{g(x)}}$ always leads to $e^z$ and $z$ is almostly decided by the limitation of $\frac{f(x)}{g(x)}$ (not that strict, but you always have $\frac1{g(x)}=\frac1{f(x)}\frac{f(x)}{g(x)}$ on shoulder), so you may deal with it by this fashion, what i write before is a rough thinking to get the result.