...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?php
class AdminMain extends MyPluginController {
public function index() {
...
$this->uses("Emails");
$tags = array('first_name' => "Tommy", 'last_name' => "Callahan");
$options = array('to_client_id' => 1020);
$this->Emails->send("MyPlugin.custom_action", $this->company_id, "en_us", "tommy.callahan@yourdomain.com", $tags, null, null, null, $options);
}
}
?> |