It is not advisable to send a written notice to vacate through email because the courts may deem this as invalid. You should send the notice via certified mail and keep a copy of it for your records. If you intend to use email, you can do so and provide your landlord with an opportunity to view a copy of your notice online.