Fix bug in mail command so it will actually mail out