Fórum Dúvida TIdAttachment – idMsgMail #426628
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
Curtir tópico
+ 0Post mais votado
10/01/2013
Substitua o TIdAttachment.Create por TIdAttachmentFile.Create
Rafael Marin
Gostei + 2
Mais Posts
19/10/2012
Alisson Santos
Está dando algum erro??
Gostei + 0
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
Gostei + 0
19/10/2012
Luiz Eduardo
Abraço
Gostei + 0
26/03/2020
Evolte
Substitua o TIdAttachment.Create por TIdAttachmentFile.Create
Estova com o mesmo Problema só acrescentei o (File).Create funfou file file
Gostei + 0
04/03/2022
Marcos Castro
Funcionou. Obrigado.
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)