Masatoshi Mizuno > Egg-Release-Mail-0.06 > Egg::View::Mail::MIME::Entity

Download:
Egg-Release-Mail-0.06.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Egg::View::Mail::MIME::Entity - The content of the transmission of mail is made with MIMI::Entity.

SYNOPSIS ^

  package MyApp::View::Mail::MyComp;
  use base qw/ Egg::View::Mail::Base /;
  
  ...........
  .....
  
  __PACKAGE__->setup_mailer( CMD => 'MIME::Entity' );

DESCRIPTION ^

It is MAIL component for the content of the transmission of mail to be made from MIMI::Entity.

Use is enabled specifying 'MIME::Entity' for the second argument of 'setup_mailer' method.

  __PACKAGE__->setup_mailer( SMTP => qw/ MIME::Entity / );

METHODS ^

create_mail_body ([MAIL_DATA_HASH])

The result is returned by the SCALAR reference by processing MAIL_DATA_HASH with MIMI::Entity.

The following item comes to be evaluated by the argument and the configuration of 'send' method of Egg::View::Mail::Base.

headers

The header that wants to be included in the content of mail can be passed with HASH.

  headers => {
    'X-Hoge' => 'fooo',
    },

attach

The attached file is put up by mail.

  attach => [
    {
      Path     => '/path/to/images/abc.gif',
      Type     => 'image/gif',
      Encoding => 'Base64',
      },
    {
      Path     => '/path/to/content/abc.txt',
      Type     => 'text/plain',
      },
    ],

SEE ALSO ^

Egg::Release, Egg::View::Mail, Egg::View::Mail::Base, MIME::Entity,

AUTHOR ^

Masatoshi Mizuno <lushe@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright (C) 2008 Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.

syntax highlighting: