Adviser resigns over dodgy email