IIS 5 & IIS 6
How can I avoid line wrapping when creating a mail message using CDO...
Last post Nov 18, 2016 01:58 PM by leij9857
Apr 20, 2011 04:38 AM|Alan McGrath|LINK
I'm creating a new message using CDO. However, my message text (plaintext) is being automatically line wrapped. Is there a field parameter to either disable automatic line wrapping or set it to a very high value?
When I open the the message in the IIS SMTP queue, I can see the line wrapping occurs at around 76 chars. My code is being called from an event sink.
Apr 20, 2011 09:47 AMemail@example.com|LINK
As long as you're not inserting carriage returns/line feeds in your code then the wrapping is done on the client side.
Apr 20, 2011 09:53 AM|Alan McGrath|LINK
Even if I use plain old Notepad to open the EML file in the message queue, it contains line breaks arounf character 76. (And word wrap is off in Notepad of course.)
I printout msg.TextBody in my vbscript code right before calling msg.Send and there are no line breaks.
I read another post that suggests I'd have to use quoted-printable encoding to fix this. But I need a more global solution.
May 18, 2011 05:10 AM|Topspy|LINK
May 27, 2015 06:47 AM|Nages143|LINK
Have you fixed this problem? Can you pls share the solution.
Nov 18, 2016 01:58 PM|leij9857|LINK
BodyPart.ContentTransferEncoding determines how the message is encoded, see
https://msdn.microsoft.com/en-us/library/aa487378(v=exchg.65).aspx for the different options