generate mailer and implement sending an email upon submitting a contact form