working mail stack