Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Internet
Registrarse FAQ Miembros Calendario Guía de estilo Buscar Temas de Hoy Marcar Foros Como Leídos

Colaboración Paypal con ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #7  
Antiguo 20-05-2008
martinchooozzz martinchooozzz is offline
Miembro
 
Registrado: sep 2006
Posts: 21
Poder: 0
martinchooozzz Va por buen camino
asi pude enviar correo con mi cuenta de speedy! tube que agregar esto smtp.AuthenticationType:=Atlogin; sino me daba un error de autentificacion despues lo otro andaba x ahi en los foros;


Código:
 
uses
  Idmessage, IdSMTP;
 
 
procedure TForm1.Button1Click(Sender: TObject);
var
   smtp: TIdSMTP;
   mail: TIdMessage;
 begin
   smtp := TIdSMTP.Create(Self);
   smtp.AuthenticationType:=Atlogin;
   mail := TIdMessage.Create(Self);
   with smtp do
   begin
     Port := 25;
     Host := 'mail.speedy.com.ar';
     Username := '[email protected]';
     Password := '123456';
   end;
   with mail do
   begin
     Recipients.Add;
     Recipients[0].Name := 'martincho';
     Recipients[0].Address := '[email protected]';
     From.Name := 'Ubicacion de mi sistena';
     From.Address := '[email protected]';
     Subject := 'Ubicacion Sigea';
     Body.Text := 'cuerpo del mensaje';
   end;
 //  TIdAttachment.Create(mail.MessageParts, 'C:\adjunto.txt');
   smtp.Connect(30000);
   try
     try
      smtp.Send(mail);
     except
       on E: Exception do
         ShowMessage(E.Message);
     end;
   finally
     if smtp.Connected then
       smtp.Disconnect;
   end;
   mail.Free;
   smtp.Free;
end;
Responder Con Cita
 


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Enviar mail desde el Outlook Express Gabriel2 Internet 10 27-12-2015 11:20:42
Como enviar un e-mail desde Builder? JuanErasmo C++ Builder 13 26-11-2008 17:39:58
Enviar Mail desde codigo!! lasagastume Internet 3 19-07-2007 16:39:33
Como enviar un mail desde una aplicacion herodes Varios 3 20-04-2005 17:20:17
enviar mail desde delphi 7 Diego Internet 2 07-06-2004 13:07:50


La franja horaria es GMT +2. Ahora son las 15:54:58.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi