...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?php class AdminMain extends MyPluginController { public function index() { $this->uses(array("Emails")); $from = "no-reply@mydomain.com"; $from_name = "My Company"; $to = "tommy.callahanyourdomaincallahan@yourdomain.com"; $subject = "Subject of the email"; $body = array( 'text'=> "Hi {first_name}, This is your email." ); $tags = array('first_name'=>"Tommy"); // Send the custom email $this->Emails->sendCustom($from, $from_name, $to, $subject, $body, $tags); } } ?> |
...