onBeforeSendEmail event triggered from Commerce_EmailsService I'm trying to access the order and orderHistory model via onBeforeSendEmail event. I can see that in Commerce_EmailsService.php file on line 311 the event is created with those params and passed to onBeforeSendEmail, but when I try to access them from my plugin, they are not there. I thought they would be available in the variables param, but they are not (or I'm doing something wrong here).

Does anyone know if/how I can access those models from onBeforeSendEmail event?
You don't show what code you're trying to use to access the parameters, but something like this should work from your main plugin class:

public function init()
{
    parent::init();

    craft()-&gt;on('commerce_emails.beforeSendEmail', function($event) {
        $params = $event-&gt;params;

        $craftEmail = $params['craftEmail'];
        $commerceEmail = $params['commerceEmail'];
        $order = $params['order'];
        $orderHistory = $params['orderHistory'];

        ...
    });
}