finished mailing functionality for contact form