if(empty($this->id)){
$p = new PEAR();
- return $p->raiseError("template [{$contents['template']}]has not been set");
+ return $p->raiseError("template [{$contents['template']}] has not been set");
}
if(empty($contents['subject'])){
$contents['subject'] = $this->subject;
$templateDir = session_save_path() . '/email-cache-' . $ui['name'] ;
//print_r($this);
+
+
$cfg = array(
'template'=> $this->tableName() . '-' . $this->id,
'templateDir' => $templateDir,
"To: {if:t.person}{t.person.getEmailFrom():h}{else:}{rcpts:h}{end:}",
"Subject: {t.subject} ",
"X-Message-ID: {t.id} ",
- "{if:t.replyTo}Reply-To: {t.replyTo:h}{end:}"
+ "{if:t.replyTo}Reply-To: {t.replyTo:h}{end:}",
+ "{if:t.mailgunVariables}X-Mailgun-Variables: {t.mailgunVariables:h}{end:}"
))."\n");