I found this example, but it no longer works. It says that there are too many parameters in TIdAttachment.Create. This must be an old example from I9. Does anyone have a good Indy 10 attachment example? Thanks
uses IdAttachment
Attachment: TIdAttachment;
for x := 0 to ListBox1.Items.Count-1 do
Attachment := TIdAttachment.Create(IdMessage1.MessageParts, ListBox1.Items.Strings[x]);