Let $M,N$ be smooth manifolds with boundary.
Suppose we have a map $\phi:M \to N$ which satisfies the following properties:
$$ (1) \, \, \phi(\operatorname{int}M)=\operatorname{int}N,\phi(\partial M)=\partial N $$
$$ (2) \, \, \phi|_{\operatorname{int}M}:{\operatorname{int}M} \to {\operatorname{int}N} , \phi|_{\partial M}:{\partial M} \to {\partial N} \, \, \text{are both smooth maps}$$
Is it true that $\phi$ is smooth as a map $M \to N$?
I imagine that something can go wrong when we "approach the boundary from the interior".
Consider the case when $M=N=D^2$, a two-dimensional disk. Let $\phi$ be the identity on the interior, and a nontrivial rotation on the boundary. The total map $\phi$ is not even continuous.