Sending mail, Integration test