Don't try to use the mail() function if it's not available, should fix Travis-CI builds.