Added net.mail function