TMimeMess.AddPartHTMLBinaryFromFile
TMimeMess
function AddPartHTMLBinaryFromFile(Const FileName, Cid: 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 file specified by FileName.
This binary part is encoded as inline data with given Conten ID (cid). Content ID can be used as reference ID in HTML source in HTML part.
See also:
AddPart, AddPartHTML, AddPartHTMLBinary, AddPartHTMLFromFile, AddPartMultipart, MessagePart