Sending email from a dynamic template issue - Email body file not found
I'm trying to load the BodyFile from a dynamic template
$Email->BodyFile = "message_preview.php?id=$m";
Emails are sent (SMTP) Either singular or multiple BUT I get an error & no content
Email body file not found: /var/www/clients/clientX/webXXX/web/message_preview.php?id=473
If I load a static page
$Email->BodyFile = "mailtest.php";
It works fine.
I've changed the WA_Email.php to the 1.22 ver.
In rsobj.php I have $this->CrossSiteProtect = false; as it was causing issues with loading dynamic content from the database.
What do I need to change / add to make this work?