I need script for attaching files using sendmail?
Posted on 1998-12-01
I am using perl subroutine in order to sendmail
what should I change or add to this subroutine in order
to sendmail with attachment.
open(MAIL,"|/usr/lib/sendmail -t")||die(&logger($sr,"can not open process sendmail"));
print MAIL "To: $To\n";
print MAIL "From: someone\@tase.co.il\n";
print MAIL "Subject: ".$Su."\n\n";
print MAIL "".$Bod ;
I dont want to use package as MIME:lite