You need to be very careful when you decide to resign. Keep in mind your resignation way will not affect your career in future.