<UPDATE>
but that is the wrong place to set it! The Type attribute in the IO::Socket::INET constructor is for the socket type, not the content type!
</UPDATE>
UPDATED code: put into for loop to try and mimic the seeker's code.use strict; use warnings; use LWP::Simple; use MIME::Lite; my $html = get('http://site.com/pagetest.html') or die "no html\n"; my @mailto = map "ok$_\@ok.com", (1..3); for my $to (@mailto) { my $msg = MIME::Lite->new( From => 'master-ok@ok.com', To => $to, Type => 'text/html', Subject => 'Hell is breaking loose!', Data => $html, ); $msg->send or die "couldn't send message to '$to'\n"; }
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In reply to Re: Sending HTML e-mail
by jeffa
in thread Sending HTML e-mail
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |