modules used are:
use Email::MIME;
use Email::Sender::Simple qw(sendmail);
open(my $tmp_fh,"<",html_file) or die "error: $!";
@email_body = <$tmp_fh>;
close $tmp_fh;
my $message = Email::MIME->create(
header_str => [
From => '<jo...@apple.com>',
To => '<jac...@banana.com>',
Subject => "Please see my test email",
],
attributes => {
encoding => 'quoted-printable',
charset => 'ISO-8859-1',
content_type => 'text/html'
},
body_str => @email_body,
);
sendmail($message);
join('',@array)
________________________________
From: David Precious <dav...@preshweb.co.uk>
To: begi...@perl.org
Sent: Wednesday, February 20, 2013 1:01 PM
Subject: Re: Email::Mime not able to send array in mesg body
--
To unsubscribe, e-mail: beginners-...@perl.org
For additional commands, e-mail: beginne...@perl.org
http://learn.perl.org/