if fileexists(inifile.ReadString('mailhead', 'Attachment', '')) then
TIdAttachment.Create(idMessage1.MessageParts, inifile.ReadString('mailhead', 'Attachment', ''));
...全文
14666打赏收藏
TIdAttachment 谁知道这个怎么用啊?IDSMTP1高手出来啊
delphi7+ indy10 if fileexists(inifile.ReadString('mailhead', 'Attachment', '')) then TIdAttachment.Create(idMessage1.MessageParts, inifile.ReadString('mailhead', 'Attachment', ''));
if fileexists(inifile.ReadString('mailhead', 'Attachment', '')) then
TIdAttachment.Create(idMessage1.MessageParts, inifile.ReadString('mailhead', 'Attachment', ''));