Email::Assets - Manage assets for Email
MIME::Types object
boolean flag, allows you to attach only appropriate assets to a mail
arrayref of where to look for files
relative path and filename for a file
Object accessor method, returns full filename and path (which may not exist if the asset was created from data instead of a file).
Object accessor method, returns MIME type / content-type of the asset
moose method called by constructor, handles validating path to file
Object method to get file as inline-data string, including content type and base64 encoded file contents
<img src="data:[% assets.include('static/foo.gif', {inline_only => 1}).inline_data -%]">
See wikipedia reference in SEE ALSO for details on limited support & pro/cons of using inline data over cid
Object method to get file contents encoded in base64
Object method to get file as a MIME::Lite object, takes optional hashref of arguments, arguments are : content_disposition which defaults to attachment.
Object accessor method, returns opposite to inline_only
Aaron J Trevena, <teejay at cpan.org>
<teejay at cpan.org>
To install Email::Assets, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Email::Assets
CPAN shell
perl -MCPAN -e shell install Email::Assets
For more information on module installation, please visit the detailed CPAN module installation guide.