trying a mail function