I've tried creating a
contactform.php file with the P&T Contact Form plugin and using the code in the documentation to be able to programmatically add recipients. However, when I use this code:
<?php namespace Craft; $toEmail = craft()->request->getPost('toEmail'); $toEmail = craft()->security->validateData($toEmail); return array( 'toEmail' => ($toEmail ?: null), ... );
I end up getting a white screen of death and a 500 Internal Server Error. I don't know why it's doing this, I tried editing the permissions of my
craft folder and the
contactform.php file, but nothing has worked and I keep getting a white screen.
How can I fix this? Thanks!