Dúvida TIdAttachment – idMsgMail
19/10/2012
0
Pessoal,
No delphi 7 tenho :
TIdAttachment.Create(idMsgMail.MessageParts, AuxAnexo);
idSmtpMail.AuthenticationType := atLogin;
no Delphi XE2 não funciona, alguém sabe como ficaria o TIdAttachment e o AuthenticationType?
Agradeço!!
Itamar Souza
Post mais votado
10/01/2013
Substitua o TIdAttachment.Create por TIdAttachmentFile.Create
Rafael Marin
Mais Posts
19/10/2012
Alisson Santos
Está dando algum erro??
19/10/2012
Itamar Souza
Estou tendo esse erro no Delphi XE2
Agradeço
Result := False;
idMsgMail := TidMessage.Create(nil);
idSmtpMail := TIdSMTP.Create(nil);
if pos(';', sFileName) > 0 then
begin
sFileName := sFileName + ';';
while pos(';', sFileName) > 0 do
begin
AuxAnexo := copy(sFileName, 1, pos(';', sFileName) - 1);
Delete(sFileName, 1, pos(';', sFileName));
if Trim(AuxAnexo) <> '' then
TIdAttachment.Create(idMsgMail.MessageParts, AuxAnexo);
[DCC Error] UntPrincipal.pas(290): E2034 Too many actual parameters
19/10/2012
Luiz Eduardo
Abraço
26/03/2020
Evolte
Substitua o TIdAttachment.Create por TIdAttachmentFile.Create
Estova com o mesmo Problema só acrescentei o (File).Create funfou file file
04/03/2022
Marcos Castro
Funcionou. Obrigado.
Clique aqui para fazer login e interagir na Comunidade :)