NAME

Email::Assets - Manage assets for Email

ATTRIBUTES

mime_types - MIME::Types object

cid

inline_only - boolean flag, allows you to attach only appropriate assets to a mail

base_paths - arrayref of where to look for files

relative_filename - relative path and filename for a file

METHODS

filename - full filename and path

mime_type - MIME or content-type of file

BUILD - moose method called by constructor, handles validating path to file

inline_data - method to get file as inline-data string, including content type and base64 encoded file contents

file_as_base64 - get file contents encoded in base64

as_mime_part - get file as a MIME::Lite object

not_inline_only - opposite to inline_only

AUTHOR

Aaron J Trevena, <teejay at cpan.org>