3 class HelperMailer
extends AkActionMailer
5 var $helpers = 'mailer,example';
7 function use_helper($recipient)
10 'recipients' => $recipient,
11 'subject' => 'using helpers',
12 'from' => 'tester@example.com'));
15 function use_example_helper($recipient)
18 'recipients' => $recipient,
19 'subject' => 'using helpers',
20 'body' => array('text' => 'emphasize me!' ),
21 'from' => 'tester@example.com'));
24 function use_mail_helper($recipient)
26 $this->helpers
= 'mail';
28 'recipients' => $recipient,
29 'subject' => 'using helpers',
30 'from' => 'tester@example.com',
31 'body' => array('text' =>
32 "But soft! What light through yonder window breaks? It is the east, " .
33 "and Juliet is the sun. Arise, fair sun, and kill the envious moon, " .
34 "which is sick and pale with grief that thou, her maid, art far more " .
35 "fair than she. Be not her maid, for she is envious! Her vestal " .
36 "livery is but sick and green, and none but fools do wear it. Cast " .
41 function use_helper_method($recipient)
44 'recipients' => $recipient,
45 'subject' => 'using helpers',
46 'from' => 'tester@example.com',
47 'body' => array('text' => "emphasize me!")));
51 function name_of_the_mailer_class()
53 return $this->getMailerName();