Update template-contact.php

add dynamic url and updated to use functions .php for mail send