mailer script for contact form

Permalink
Hi

I'm trying to build a contact form. I can't use the standard form block as I require greater customisation.

Due to the requirements of the build I need to place the script which actually sends the email in a separate php file to the view.php of the block. I would like to use the concrete5 mailer system ( @mh->sendMail() ).

The concrete5 mailer system will not work in just any php file.

My question is how can I create a php file where the mailer system will work, and where should I put it / how should I reference it.


Thanks in advance