195 $replyTo = $site_email_from;
196 $replyToName = $site_email_name;
200 $replyTo = $emailFrom;
205 $replyToName = $emailName;
208 $toAddr = trim($toAddr);
210 if (
$config[
'html_email_template'])
213 trace(
"Loading email template '$file'", 3);
214 $template = file_get_contents(
$file);
221 $this->transport->setTo($toAddr);
222 $this->transport->setFrom($site_email_from, $site_email_name);
223 $this->transport->setReplyTo($replyTo, $replyToName);
224 $this->transport->setReturnPAth($site_email_from);
225 $this->transport->setSubject(
$subject);
226 $this->transport->setHTMLMessage(
$message);
227 $this->transport->setPlainMessage(HTMLToText(
$message));
229 if($attachments && !is_array($attachments))
231 $attachments = array_combine(basename($attachments), $attachments);
241 $iCalMgr->setOrganizer($replyTo, $replyToName);
242 $iCalMgr->setAttendee($toAddr);
244 $this->transport->setICalAttachment($iCalMgr->format(), $iCalMgr->data->get(
"method"));
if(! $attachment_id) $attachment
static createTransport($mode=null)
static getStyles()
Returns the HTML link tags for CSS files specified by the registered components in their manifest fil...
static getValue($component, $name)
Retrieve the value of the specified Setting.
if(!Settings::getValue("debug", "enable_trace_file_downloads")) $filename