LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-25-2015, 09:29 AM   #1
Are Bee
LQ Newbie
 
Registered: Mar 2015
Location: Central AR
Posts: 1

Rep: Reputation: Disabled
sendmail 500 char limit for paragraph


Thanks in advance...
I am command line piping into sendmail from C code. I am sending sizable text containing actual newline characters (about 4k total) and simple html. The mail ends up on MS Outlook. Here's my question:
Generally speaking, things look OK until I send a large single paragraph. This has a linefeed inserted at character 500(?) and the remainder of the paragraph is continued as a new paragraph. Is there a buffer length option or a command line option that I can adjust to make this come out as a single paragraph?
I have tried this with several shorter paragraphs above and below and it's only the single, long paragraph that is broken.
(I am aware of the RFC about 80 characters in html tags inserting "!" and dealt with that problem building a table. I'm thinking a similar "fix" might also be available for this?)
 
Old 03-26-2015, 03:53 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,880
Blog Entries: 1

Rep: Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871
An option is sending it in base64:

Code:
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: base64

YXQgd2ViIHdpbi1wYyB3aW5wcm9iYSB3cmFwLmRhdCB3cmFwdGVzdC5zaCB4IHhzZCB4dGVybS0y
NTZjb2xvci50aSB4dGVybS1uZXcudGkgeHp0ZXN0IHpzaWdhLnR4dCB6c29maQo=
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How Do I Limit A Process From Using > 500 MB RAM? kinkle Linux - General 4 01-30-2011 04:45 PM
Sendmail limit size mbox p3tzata Linux - Server 4 12-07-2009 04:35 AM
How do I limit which domains sendmail can send to? bax Linux - Software 13 10-05-2009 11:13 AM
In BIND 9.3 DNS trying to get past the 256 char limit in SPF TXT records tmanx Linux - Server 0 06-15-2009 03:10 PM
sendmail message limit zaqavis Linux - Newbie 0 02-27-2008 04:56 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration