We obtain a necessary and sufficient solvability condition for a linear autonomous inhomogeneous functional differential equation with aftereffect and find the representation of all solutions in the special spaces of integrable functions with exponential weight. The obtained results are applied for study of two inhomogeneous differential equations with aftereffect (the first equation is with concentrated aftereffect, and the second one is with distributed aftereffect). We give the description of solutions spaces for these equations in terms of parameters of the initial problem.