This is the API docs for LemonStand V1, which has been discontinued. LemonStand is now a cloud based platform, available at lemonstand.com.

LemonStand API

core:onAfterEmailSendToTeam event

Triggered by System_EmailTemplate
Author LemonStand eCommerce Inc.

Event handler signature

public void event_onAfterEmailSendToTeam(mixed $users, string $subject, string $text, string $customer_email, string $customer_name, array $reply_to, System_EmailTemplate $template)
$users mixed specifies a list of users to send the message to. The value can be either a data collection or array.
$subject string specifies the message subject
$text string specifies the message text
$customer_email string specifies the customer email address. In some cases customer email address and name can be different from the email and name specified in the $customer object.
$customer_name string specifies the customer name.
$reply_to array an array containing the reply-to email and name: array('john@example.com'=>'John Smith')
$template System_EmailTemplate specifies the email template
Triggered after an email notification is sent to LemonStand users. Event handler example:
public function subscribeEvents()
{
  Backend::$events->addEvent('core:onAfterEmailSendToTeam', $this, 'after_email_send_to_team');
}

public function after_email_send_to_team($users, $subject, $message_text, $customer_email, $customer_name)
{
  // Do something
}