#!/usr/bin/perl -W
use lib '../lib';
use HTML::Mail;
use strict;
# Misc stuff
# Read sendpage first
if ( $#ARGV != 1 ) {
print <new(
HTML => $url,
Text => "This is the alternative text.\nPlease visit $url\n",
From => 'plank@cpan.org',
To => $email,
Subject => "Mail with $url",
);
$html_mail->send();
$html_mail->build(Text=>undef, inline_css=>0);
$html_mail->send;
#try to attach some linked content
$html_mail->build(attach_links => sub{my $uri = shift; return $uri =~ /\.gif$/});
$html_mail->send;