test mailing in production mode