I have a question about this mail mod.
print MAIL "To: $in{'To'}\n";
print MAIL "From: $in{'From'}\n";
print MAIL "Subject: $in{'Subject'}\n";
print MAIL "\n\n";
print MAIL "$in{'Message'}\n" ;
print MAIL "\n\n";close (MAIL);The problem is that when it sends mail if any field is over a certain length the receiving person has to scroll right and left to read the message. Is there any way to force the line to break after so many characters?
Code:
open (MAIL, "|/usr/sbin/sendmail -t"); print MAIL "To: $in{'To'}\n";
print MAIL "From: $in{'From'}\n";
print MAIL "Subject: $in{'Subject'}\n";
print MAIL "\n\n";
print MAIL "$in{'Message'}\n" ;
print MAIL "\n\n";close (MAIL);