contact: code cleanup (mailform function)