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:onAfterEmailSendToCustomer event

Triggered by System_EmailTemplate
Author LemonStand eCommerce Inc.

Event handler signature

public void event_onAfterEmailSendToCustomer(Shop_Customer $customer, string $subject, string $text, string $customer_email, string $customer_name, mixed $custom_data, array $reply_to, System_EmailTemplate $template, mixed $api_re
$customer Shop_Customer customer object
$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.
$custom_data mixed extra parameters passed to the email template.
$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
$api_result mixed the result obtained from a third-party core:onSendEmail event handler. This value is set only if the core:onSendEmail event was handled by a third-party module.
Triggered after an email notification is sent to a customer. Event handler example:
public function subscribeEvents()
{
  Backend::$events->addEvent('core:onAfterEmailSendToCustomer', $this, 'after_email_send_to_customer');
}

public function after_email_send_to_customer($customer, $subject, $message_text, $customer_email, $customer_name, $custom_data)
{
  // Do something
}