Contact Form Validation

I have a simple contact form that uses Action Mailer. I’d like to add
validation to this form to verify users are entering the required
information. Since Action Mailer doesn’t have any built-in validation
like Active Record, how would I go about adding validation?