How to code within the latest Send Email behaviour?
Looks like we lost the last versions methods of assembling the <body> of an email in the same basic code that is created when we do a Send Mail. There used to be the option that used an "include" such as:
include("../webassist/email/waue_mod_leadsx_1.php");
This causes me to lose access to some local recordset values. So to work in the newer version, I have created a variable that determines which email template to use.
<?php
if ($memberDetails->getColumnVal('mEmailTemplate')!='') {
$targetEmailTemplate = $memberDetails->getColumnVal('mEmailTemplate');
} else {
$targetEmailTemplate = "GenericReply.php";
} ?>
No problem, this works BUT it renders the error alert as shown below.
Does DW create this alert or WebAssist?
Is the alert due to the way the variable is rendered in this line? :
$Email->BodyFile = "../webassist/email/templates/".$targetEmailTemplate."";