[sf-perl] Sending mime attachments with perl
Mark Grimes
mgrimes at cpan.org
Thu Jan 26 05:22:12 PST 2012
Nice write-up. The command line tool looks very useful.
Another nice package for complex emails is Ricardo Signes'
Email::MIME::Kit. I've used it successfully on a couple of projects.
He did a post about it a few years ago for his advent calendar
(http://advent.rjbs.manxome.org/2009/2009-12-10.html). It supports a
number of different templating options (TT, Mason, etc).
On Wed, Jan 25, 2012 at 10:37 PM, Francisco Obispo <fobispo at isc.org> 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
>
> _______________________________________________
> 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