title: How To Perform regression In emails for security. Suppose i want to validate if the email belongs to my organization domain
body: <p>Hi I need to know how do we validate the input email if that email has the right domain which belongs to my company.
  For example - The signup codes or the reset password tokens or anything which is related to email will only be sent over the email if the email is in this format. Abcd@company.com where company is my domain.
  If anything except this format is put in the email it should be denying or saying wrong email or wrong email format.
  For example if a put Abc@gmail.com it should be validating it is wrong email fromat or wrong email.</p>
  <p>Thanks</p>