In case of misbehavior by your boss as stipulated in the email, you need to act accordingly in the following manner:
Steps to Address Boss Misbehavior
Firstly, you need to lodge a police complaint in case it is 'Sexual Harassment.'
Secondly, you need to bring it to the notice of other top management members in the organization.
Thirdly, your decision to resign is in the right direction, but you need to explain the reasons for leaving.
Finally, you can file a criminal case against your boss for his misconduct.
Regards