$_component
$_component : string
The name of the component, e.g. net.nehmer.static. Should be used whenever the component's name is required instead of hardcoding it.
Class for handling email sending
Sending Mails
Currently, the engine will send the emails through an autodetected transport, which can be either SMTP, Sendmail or PHP's mail() function (in that order).
Example usage code
$mail = new org_openpsa_mail();
$mail->from = 'noreply@openpsa2.org'; $mail->subject = $this->_config->get('mail_from'); $mail->body = $this->_config->get('mail_body'); $mail->to = $this->_person->email;
if (!$mail->send()) { debug_add("Email could not be sent: " . $mail->get_error_string(), MIDCOM_LOG_WARN); }
$_backend : \org_openpsa_mail_backend
The backend object
get_workflow(string $identifier, array $options = array()) : \midcom\workflow\dialog
string | $identifier | |
array | $options |