PERL sendmail ignores sending assigned value

45 views
Skip to first unread message

rkha...@benabraham.com

unread,
Jan 20, 2013, 5:20:33 PM1/20/13
to perl-mai...@googlegroups.com
all "print MAIL" commands execute nicely except for the line "this is the item that ...

open (MAIL, "|/usr/sbin/sendmail -t");
print MAIL "To: $to \nFrom: $from\n";
print MAIL "Subject: $subject\n";
print MAIL "$name\n";
print MAIL "$address1\n";
print MAIL "$address2\n";
print MAIL "$address3\n";
print Mail "this is the item that does not want to print\n";
print MAIL "$country\n";
print MAIL "\n";
print MAIL "\n$comments\n";

close (MAIL);
Reply all
Reply to author
Forward
0 new messages