[sf-perl] Sending mime attachments with perl

Francisco Obispo fobispo at isc.org
Wed Jan 25 19:37:26 PST 2012


I've been using MIME::Lite::TT::HTML with great results.. and it's very very easy to use..

  my $msg = MIME::Lite::TT::HTML->new(
    From => 'Test Email <do-not-reply at isc.org>',
    To      => 'destinationemail at domain.tld',
    Subject => 'This is the subject',
    Template => {
                  text => 'text-email.tt',
                  html => 'html-email.tt',
    },
    TmplOptions => \%options,
    TmplParams  => $args,
  );

  $msg->send;


that's all…


On Jan 25, 2012, at 7:17 PM, Philip J. Hollenback wrote:

> Another of my sporadic blog posts.  This time I stumble down the path of
> sending mime attachments via a perl script.
> 
> http://www.hollenback.net/index.php/SendMimeWithPerl
> 
> I probably have too much time on my hands or something.
> 
> P.
> --  
> Philip J. Hollenback
> philiph at pobox.com
> www.hollenback.net
> 
> _______________________________________________
> SanFrancisco-pm mailing list
> SanFrancisco-pm at pm.org
> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm



More information about the SanFrancisco-pm mailing list