Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Long lines in email and encode_qp

Status
Not open for further replies.

Crundy

Programmer
Jul 20, 2001
305
GB
Hello,
I have a problem whereby I have a mailing script which pipes directly into sendmail, but the user is entering extremely long lines and sendmail is rejecting the email because of it. For the HTML portion of the email I can use encode_qp which works fine, but if I use encode_qp for the plaintext version of the email it is displayed literally, thus:

This is a test mess=
age with long lines=
in it

How can I split a plain text email message using perl to pipe into sendmail without getting errors about long lines?

C:\DOS:>
C:\DOS:>RUN
RUN DOS RUN!!
 
Text::Wrap??

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top