Jump to content
Fórum Script Brasil
  • 0

Erro Ao Anexar


Miranda

Question

Delphi 2005.

for xAnexo := 0 to ListBox1.Items.Count-1 do

TIdAttachmentFile.create(idmessage.MessageParts, TFileName(ListBox1.Items.Strings[xAnexo]));

Erro:

[Error] principal.pas(89): E2003 Undeclared identifier: 'TIdAttachmentFile'
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Olá colega, se estiver utilizando componentes Indy, acredito que não exista TIdAttachmentFile; então tente:

TIdAttachment.Create(idmessage.MessageParts, ListBox1.Items[xAnexo]);

Note que você não precisa castear porque TFileName já é uma string.

Link to comment
Share on other sites

  • 0

Olá, segundo a documentação:

TIdAttachmentFile is a TIdAttachment descendant that implements a MIME-encoded attachment or inline graphic using a local file for storage of the contents of the message part.
Eu queria saber se alguém já utilizou o recurso citado acima (inline graphic), ou seja, codifica uma imagem por ex diretamente no email sem anexar o arquivo.
Link to comment
Share on other sites

  • 0

ta dando esse erro aqui quando e aperto F9 (RUN)

Field dlg_principal.odAnexos does not have a corresponding component. Remove the declaration?
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      651.8k
×
×
  • Create New...