MIME::Lite

MIME::Lite is a low-calorie MIME generator Perl module.
Download

MIME::Lite Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • ZeeGee Software Inc.
  • Publisher web site:
  • http://search.cpan.org/~rjbs/MIME-Lite-3.021/lib/MIME/Lite.pm

MIME::Lite Tags


MIME::Lite Description

MIME::Lite is a low-calorie MIME generator Perl module. MIME::Lite is a low-calorie MIME generator Perl module.SYNOPSIS use MIME::Lite;Create a single-part message: ### Create a new single-part message, to send a GIF file: $msg = MIME::Lite->new( From =>'me@myhost.com', To =>'you@yourhost.com', Cc =>'some@other.com, some@more.com', Subject =>'Helloooooo, nurse!', Type =>'image/gif', Encoding =>'base64', Path =>'hellonurse.gif' );Create a multipart message (i.e., one with attachments): ### Create a new multipart message: $msg = MIME::Lite->new( From =>'me@myhost.com', To =>'you@yourhost.com', Cc =>'some@other.com, some@more.com', Subject =>'A message with 2 parts...', Type =>'multipart/mixed' ); ### Add parts (each "attach" has same arguments as "new"): $msg->attach(Type =>'TEXT', Data =>"Here's the GIF file you wanted" ); $msg->attach(Type =>'image/gif', Path =>'aaa000123.gif', Filename =>'logo.gif', Disposition => 'attachment' );Output a message: ### Format as a string: $str = $msg->as_string; ### Print to a filehandle (say, a "sendmail" stream): $msg->print(*SENDMAIL);Send a message: ### Send in the "best" way (the default is to use "sendmail"): $msg->send;In the never-ending quest for great taste with fewer calories, we proudly present: MIME::Lite.MIME::Lite is intended as a simple, standalone module for generating (not parsing!) MIME messages... specifically, it allows you to output a simple, decent single- or multi-part message with text or binary attachments. It does not require that you have the Mail:: or MIME:: modules installed.You can specify each message part as either the literal data itself (in a scalar or array), or as a string which can be given to open() to get a readable filehandle (e.g., " Requirements: · Perl


MIME::Lite Related Software