Fixing content type ordering when content_type is not defined.
[akelos.git] / test / fixtures / app / models / render_mailer.php
blob1372f0fbc1ae30bd877273b328540219d06c9121
1 <?php
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)
15 $this->set(array(
16 'recipients' => $recipient,
17 'subject' => "using helpers",
18 'from' => "tester@example.com",
19 'body' => $this->render(array('file' => 'signed_up', 'body' => array('recipient' => $recipient)))
20 ));
24 function initializeDefaults($method_name)
26 parent::initializeDefaults($method_name);
27 $this->setMailerName("test_mailer");