to => 'test-email@example.com',
from => 'no-reply@example.com',
subject => 'Just a test',
- content_type => 'multipart/alternative',
+# content_type => 'multipart/alternative',
templates => [
- qw{text_plain/test.tt},
- qw{text_html/test.tt}
- ]
+ {
+ view => 'TT',
+ template => 'text_plain/test.tt',
+ content_type => 'text/plain',
+ },
+ {
+ view => 'TT',
+ template => 'text_html/test.tt',
+ content_type => 'text/html',
+ },
+ ],
};
$c->forward('TestApp::View::Email::Template');
to => 'test-email@example.com',
from => 'no-reply@example.com',
subject => 'Just a test',
- content_type => 'multipart/alternative',
+# content_type => 'multipart/alternative',
templates => [
- qw{text_plain/test.tt},
- qw{text_html/test.tt}
- ]
+ {
+ template => 'text_plain/test.tt',
+ content_type => 'text/plain',
+ },
+ {
+ template => 'text_html/test.tt',
+ content_type => 'text/html',
+ },
+ ],
};
$c->forward('TestApp::View::Email::Template::AppConfig');
subject => 'Just a test',
content_type => 'multipart/alternative',
templates => [
- qw{text_plain/test.m},
- qw{text_html/test.m}
- ]
+ {
+ template => 'text_plain/test.tt',
+ content_type => 'text/plain',
+ },
+ {
+ template => 'text_html/test.tt',
+ content_type => 'text/html',
+ },
+ ],
};
$c->forward('TestApp::View::Email::Template');