We consider an initial-boundary value problem for the heat equation with a nonlocal two-point boundary condition containing a parameter. By separating the variables in an auxiliary function system, we construct a regular solution. We obtain sufficient conditions for the absolute and uniform convergence of the series in the auxiliary system. We prove conditions close to necessary ones for the existence of a regular solution of the initial-boundary value problem.