I'm trying to insert multipage pdf files in the appendix, using the pdfpages package. I am using [Overleaf][1].
This is the code I'm using after trying a few things:
\begin{appendices}
\chapter{Emails}
\newpage
\begin{figure}[ht]
\centering
\includepdf[pages=-]{emails/email1.pdf}
\caption{Email 1}
\label{Email1}
\end{figure}
...
\end{appedices}
The problem is that the pages are not laid out each on their own page, but are all written one over the other on one page, like this (these are actually 3 pages):
How can I fix this? I am open to other solutions to achieve this as well.
Thanks.

figureenvironment. – touhami Jan 04 '16 at 17:25