3 class RenderMailer
extends AkActionMailer
5 function inline_template($recipient)
7 $this->setRecipients($recipient);
8 $this->setSubject("using helpers");
9 $this->setFrom("tester@example.com");
10 $this->setBody($this->render(array('inline' => 'Hello, <?=$who?>', 'body' => array('who' => "World"))));
13 function file_template($recipient)
16 'recipients' => $recipient,
17 'subject' => "using helpers",
18 'from' => "tester@example.com",
19 'body' => $this->render(array('file' => 'signed_up', 'body' => array('recipient' => $recipient)))
24 function initializeDefaults($method_name)
26 parent
::initializeDefaults($method_name);
27 $this->setMailerName("test_mailer");