TMimeMess.AddPartTextFromFile
TMimeMess     

function AddPartTextFromFile(Const FileName: string; Const PartParent: TMimePart): TMimePart;

Unit
MIMEmess

Description
Add MIME part as subpart of PartParent. If you need set root MIME part, then set as PartParent NIL value. If you need set more then 1 subpart, you must have PartParent of multipart type!

After creation of part set type to text part and set all necessary properties. Content of part is readed from FileName file.


See also:
AddPart, AddPartMultipart, AddPartText, MessagePart