complete mail implementation