Name : perl-Catalyst-Helper-Model-Email
| |
Version : 0.04
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.7.1
| Date : 2024-07-03 17:49:59
|
Group : Development/Libraries/Perl
| Source RPM : perl-Catalyst-Helper-Model-Email-0.04-lp156.7.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://www_suse_com/
| |
Summary : Helper for Mail::Builder::Simple
|
Description :
Using the command line above, Catalyst::Helper::Model::Email will create \'MyApp::Model::Email1\' that looks like:
package MyApp::Model::Email1; use strict; use warnings; use base \'Catalyst::Model::Factory\';
__PACKAGE__->config( class => \'Mail::Builder::Simple\', args => { mail_client => { mailer => \'SMTP\', mailer_args => { host => \'smtp.host.com\', username => \'usr\', password => \'passwd\', }, }, }, );
1;
And you will be able to send email with this model, using the following code in your controllers:
$c->model(\"Email1\"->send( from => \'meAATThost.com\', to => \'youAATTyourhost.com\', subject => \'The subject with UTF-8 chars\', plaintext => \"Hello\ \ How are you?\ \ \", );
But you will be also able to send more complex email messages like:
$c->model(\"Email1\"->send( from => [\'meAATThost.com\', \'My Name\'], to => [\'youAATTyourhost.com\', \'Your Name\'], subject => \'The subject with UTF-8 chars\', plaintext => \"Hello\ \ How are you?\ \ \", htmltext => \"< h1>Hello< /h1> < p>How are you?< /p>\", attachment => [\'file\', \'filename.pdf\', \'application/pdf\'], image => [\'logo.png\', \'image_id_here\'], priority => 1, mailer => \'My Emailer 0.01\', \'X-Special-Header\' => \'My special header\', );
...or even more complex messages, using templates.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-C/15.6/noarch |