[sf-perl] Sending mime attachments with perl

Philip J. Hollenback philiph at pobox.com
Wed Jan 25 23:48:19 PST 2012


Hey, great point.  That makes it super easy to do html and text!  In my
blog post I was just concentrating on the somewhat arbitrary goal of
creating an email with a text attachment.

On Wed, Jan 25, 2012, at 07:37 PM, Francisco Obispo wrote:
> 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
> 
--  
Philip J. Hollenback
philiph at pobox.com
www.hollenback.net



More information about the SanFrancisco-pm mailing list