sending mail, some tests