3
I am sending e-mail through the INDY, the email is being sent and the attachment is going, but as it appears in the code below, I do a go through all the attachments, and it only sends the last, someone knows what is wrong?
if pAnexo.Count > 0 then
begin
for i := 0 to pAnexo.Count - 1 do
begin
vIdAttachmentFile.Create(vIdMessage.MessageParts, pAnexo.Strings[i]);
end;
end;
The variable pAnex is an array of files that will be attached, I’m trying to send a jpeg and an xml, in the future I want to send a PDF together.
I’m looking at an example that works, the difference I saw, is that instead of a variable is straight from the class like this:
TIdAttachmentFile.Create
...– Melissa
Bah, thank you so much! It worked like this!
– R.Gasparin