Added version that sends mail