In this paper, we consider a nonhomogeneous space-time fractional telegraph equation defined in a bounded space domain, which is obtained from the standard telegraph equation by replacing the first- or second-order time derivative by the Caputo fractional derivative $D^\alpha_t$, $\alpha>0$; and the Laplacian operator by the fractional Laplacian $(-\Delta)^{\beta/2}$, $\beta\in(0,2]$. We discuss and derive the analytical solutions under nonhomogeneous Dirichlet and Neumann boundary conditions by using the method of separation of variables. The obtained solutions are expressed through multivariate Mittag-Leffler type functions. Special cases of solutions are also discussed.