Triggered before an email notification is sent to LemonStand users.
The event handler can override some variables before the message is sent. The handler function should return
an associative array containing variable names and values. The supported variables are:
public function subscribeEvents()
{
Backend::$events->addEvent('core:onBeforeEmailSendToTeam', $this, 'before_email_send_to_team');
}
public function before_email_send_to_team($users, $subject, $message_text, $customer_email, $customer_name, $reply_to)
{
$result = array(
'reply_to'=>array('john@example.com'=>'John Smith')
);
return $result;
}