CEO resigns from obscene mail