TMimeMess.AddPartBinary
TMimeMess
function AddPartBinary(Const Stream: TStream; 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 binary and set all necessary properties. MIME primary and secondary types defined automaticly by filename extension. Content of binary part is readed from Stream.
This binary part is encoded as file attachment.
See also:
AddPart, AddPartBinary, AddPartBinaryFromFile, AddPartMultipart, MessagePart