two new functions for mail testing purposes