Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Grupo de Teaming del ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 03-03-2008
yhoho yhoho is offline
Miembro
 
Registrado: may 2004
Posts: 58
Poder: 21
yhoho Va por buen camino
coreo indy

Tengo el siguietne codigo:
Código Delphi [-]
smtp : TIdSMTP;
MMsg : TIdMessage;
begin
    Try
        SMTP := TIdSMTP.cReate(nil);
       // SMTP.ReadTimeout:=10000;
        MMsg:=TIdMessage.Create(nil);
    Except
      on E : Exception DO
        begin
          showmessage('Error seding message:'+ E.Message);
          exit;
         end;
    end;
    MMsg.Clear;
    MMsg.Sender.Address:='r@tal.es';
    MMsg.from.Address:='r@tal.es';
    MMsg.Recipients.EMailAddresses:='r@tal.es';
    MMsg.Subject:='Un titulo';
    MMsg.Body.Add('Algun texto');
    MMsg.Body.Add('Algun texto mas');
    SMTP.Host:='smtp.tal.es';
    SMTP.Username:='r';
    SMTP.Password:='pass';
    Try
      SMTP.Connect;
      SMTP.Send(MMsg);
      SMTP.Disconnect;
    Except
      On E : Exception Do
        begin
          showmessage('Error sending message:'+E.Message);
        end;
     end;
SMTP.free;
MMsg.Free;
En la linea en rojo me da un error y no se porque:

class eidsocketerror with message 'socket error'#1004 process stoping.

Ese codgio me lo dejaron para enviar correo, agradeceria mucho si alguien pudiera saber a que es debido ese error porque no tengo ni idea nadie nunca me ha esplicado los indy y no se....
Responder Con Cita
 



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
Ayuda con incompatibilidad del Post de TIdHTTP de Indy 8 con Indy 10 rolandoj Internet 13 24-12-2008 13:19:01
Como reemplazar Indy 10 por Indy 9 en Delphi 2007 ? rolandoj Internet 0 13-02-2008 18:44:31
Indy 10.1.6 JXJ Varios 2 15-11-2007 06:21:06
Indy 9 Alessan Internet 3 19-01-2007 00:08:33
Indy Aztaroth Internet 1 19-02-2004 17:58:23


La franja horaria es GMT +2. Ahora son las 12:09:57.


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