Mr Twirly Cane
08-15-2002, 11:28 PM
Hi all!
I'm new to Perl and trying to adapt a short "tell-a-friend" script. I simply want the text email that the script sendmails to call a picture file. Can this be done?
The best I've achieved is getting the <img src="http//... link text shown in the resulting email. The bold is my attempt...
sub mailinfo
{
open(MAIL, "|$mailprogram -t") || die "No response from server !\n\n";
print MAIL "From: $from_email\n";
print MAIL "To: $to_email\n";
print MAIL "Subject: $subject\n\n";
print MAIL @mailtext;
print "<img src="http://kover-it.com/ecard/b2.gif">\n";
close(MAIL);
}
Any help much appreciated
Thanks in advance... :)
I'm new to Perl and trying to adapt a short "tell-a-friend" script. I simply want the text email that the script sendmails to call a picture file. Can this be done?
The best I've achieved is getting the <img src="http//... link text shown in the resulting email. The bold is my attempt...
sub mailinfo
{
open(MAIL, "|$mailprogram -t") || die "No response from server !\n\n";
print MAIL "From: $from_email\n";
print MAIL "To: $to_email\n";
print MAIL "Subject: $subject\n\n";
print MAIL @mailtext;
print "<img src="http://kover-it.com/ecard/b2.gif">\n";
close(MAIL);
}
Any help much appreciated
Thanks in advance... :)