test/email.php: Add basic test over "mock sendmail" functionality.