$this->updateOrCreateEmail($part, $opts, false);
}
- function updateOrCreateEmail($part='', $opts, $cm = false){
+ function updateOrCreateEmail($part='', $opts, $cm = false, $mapping = false){
// DB_DataObject::debugLevel(1);
$mailtext = str_replace('{outputBody():h}', $body, $mailtext);
}
+ if($mapping) {
+ foreach ($mapping as $k => $v) {
+ $mailtext = str_replace($k, $v, $mailtext);
+ }
+ }
+
require_once 'Mail/mimeDecode.php';
require_once 'Mail/RFC822.php';