I don't know which encountered such a situation, is only a matter of what?
CodePudding user response:
Their settled, here to share1) USES add IdcoderMIME reference
2) var IdEncoderMIME1: TIdEncoderMIME;
3) will be treated as a subject for the following:
STR:='" "+ STR +"' "+ inttostr (fileList. Count) + 'files to send;
IdEncoderMIME1:=TIdEncoderMIME. Create (nil);
Idmsg1. Subject:='=? GB2312? B? '+ IdEncoderMIME1. EncodeString (STR) +'?=';
IdEncoderMIME1. Free;