Configuring the form to send emails