implement mail sending queue