lindamoran
04-26-2005, 02:14 PM
What do I have to add to the code below in order to send an attachment named brochure.doc? It's an MS Word file.
open (MAIL, "|$mailprog -t") || die "BW message1: Cannot open the $mailprog program\n";
print MAIL "To: $in{'visitoremail'}\n";
print MAIL "Reply-To: $betterwayaddress\n";
print MAIL "From: $betterwayaddress\n";
print MAIL "Subject: Your brochure about How to Survive Your Diet\n\n";
print MAIL "hi";
close(MAIL);
open (MAIL, "|$mailprog -t") || die "BW message1: Cannot open the $mailprog program\n";
print MAIL "To: $in{'visitoremail'}\n";
print MAIL "Reply-To: $betterwayaddress\n";
print MAIL "From: $betterwayaddress\n";
print MAIL "Subject: Your brochure about How to Survive Your Diet\n\n";
print MAIL "hi";
close(MAIL);