Added simple mailserver function