Update custom_contact.php

Update custom_contact.php properly setting send mail functionality in its own function