(06-08-2018, 01:42 AM)Boba TC Wrote: First of all, thanks to you guys for having this forum running!
I did try to post on embarcodero but it seems to be cold dead.
Yes, sadly the Forums at forums.embarcadero.com are dead, and the Forums at community.embarcadero.com really suck.
(06-08-2018, 01:42 AM)Boba TC Wrote:Code:attchmnt->FoldLines=false; - ?
attchmnt->UnfoldLines=true; - ?
Those are properties of TIdHeaderList, and TIdAttachmentFile (more generally, TIdMessagePart) has a public Headers property that is a TIdHeaderList:
Code:
attchmnt->Headers->FoldLines = false;
attchmnt->Headers->UnfoldLines = true;
Both FoldLines and UnfoldLines are True by default. UnfoldLines is used when receiving. FoldLines is used when sending.
(06-08-2018, 01:42 AM)Boba TC Wrote: the receiving server wants the attachment header lines to be unfolded
Why? That is not standard practice for SMTP.
(06-08-2018, 01:42 AM)Boba TC Wrote: and header fields to be separated by "; " (semicolon followed by a space).
It is not possible to have multiple *headers* in a single line, that is not even legal to do, per RFCs. By *fields*, are you thinking of *per-header attributes*, and not multiple *headers*? Individual *attributes* can be on a single line, separated by "; ". Indy already handles exactly that, if you use the TIdHeaderList.Params[] property to assign the attribute values.