Mail::Builder can easily create e-mails with attachments, html and inline images.
SYNOPSIS
use Mail::Builder;
my $mail = Mail::Builder->new();
$mail->from('mightypirate@meele-island.mq','Guybrush Threepwood');
$mail->to->add('manuel.calavera@dod.mx','Manuel Calavera');
$mail->cc->add('glotis@dod.mx');
$mail->subject('Party at Sam's place');
$mail->htmltext('Party invitation ... ');
$mail->attachment->add('direction_samandmax.pdf');
my $message = $mail->stringify;
This module helps you to build e-mails with attachments, inline images, multiple recipients without having to worry about the underlying MIME stuff. Mail::Builder relies heavily on the MIME::Entity module from the MIME::Tools distribution.
The module will create the correct MIME bodies, headers and containers (multipart/mixed, multipart/related, multipart/alternative) depending on if you use attachments, HTML text and inline images.
Product's homepage
Requirements:
· Perl