I'm looking for examples of smooth proper embeddings between connected compact manifolds of the same dimension that are not diffeomorphisms. I remember having seen an example with $S^7$ in mathoverflow, but now I can't find it.
EDIT: More generally, I'm looking for examples of smooth embeddings that are homeomorphisms but not diffeomorphisms. I remember having seen an example involving exotic $S^7$'s in mathoverflow, but now I can't find it.
EDIT: At first I erased the first question. Here it is again.
(Here is an answer to the new version of the question.)
There are no such examples!
Indeed, since $f:M\to N$ is a homeomorphism, the manifolds $M$ and $N$ have the the same dimension by invariance of dimension ( a purely toplogical result).
But then the embedding $f$, being an immersion, is a local diffeomorphism which proves that $f^{-1}:N\to M$ is also smooth, so that finally $f$ must be a diffeomorphism.