Sending email using NotesStream - content is truncated

I’ve been using the NotesStream thingy in LotusScript to send out HTML formatted emails.

When the email is sent to an internal email account, the email looks fine - everything is there.

However, when the email is sent to an external email account, the email content is truncated. I have tried different email providers - all have the same problem.

My code is based on this sample from searchdomino/techtarget:

http://searchdomino.techtarget.com/tip/1,289483,sid4_gci953261,00.html

How do I stop the truncation of email content?

Subject: Sending email using NotesStream - content is truncated - solution found

Updates:

Lotus Notes mail client does not have any problem with the email (when sent internally).

However, when emails are sent to external accounts, the problem crops up.

Upon further investigation, it was revealed that the SMTP truncating the email content. According to one of the email header info:

PMDF-SMTP-Warning: Lines longer than SMTP allows found and truncated.

Checks against this warning code reveals that SMTP doesn’t like lines longer than 1024 characters.

Solution: Add new line characters to the NotesStream code.