![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
![]() |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
|
|
#1
|
|||
|
|||
|
Siento molestar pero mirad, este es mi code actual:
Código:
begin
liAns := Application.MessageBox('Are you a Delphi fan?',
'Yes or No?', MB_YesNoCancel);
case liAns of
2: ShowMessage('You chose Cancel');
6: ShowMessage('You chose Yes.');
7: ShowMessage('You chose No.');
end;
//class procedure TIdSMTP.QuickSend (const AHost, ASubject, ATo, AFrom, AText : String);
LSMTP := TIdSMTP.Create(nil);
try
LMsg := TIdMessage.Create(LSMTP);
try
with LMsg do
begin
Subject := 'hola';
Recipients.EMailAddresses := '[email protected]';
From.Text := '[email protected]';
Body.Text := 'Bienvenido!';
end;
with LSMTP do
begin
Host := 'smtp.correo.yahoo.es';
Username := 'zeopix2';
Password := 'xxxxxx';
AuthenticationType :=atLogin;
Authenticate;
Connect; try;
Send(LMsg);
finally Disconnect; end;
end;
finally
FreeAndNil(LMsg);
end;
finally
FreeAndNil(LSMTP);
//end;
end;
end;
|
|
#2
|
|||
|
|||
|
Am lo de authentificationtype pe has puesto eso, pero yo lo pongo así:
AuthType :=atLogin; pk si no no da bién, pero me dice que atLogin no esta definido, que debo hacer? como y con que tipo de objeto lo defino? |
![]() |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
|