![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#4
|
|||
|
|||
|
Muchas gracias por contestar amigos, este es el codigo que utilizo . . . de antemano les agradezco su tiempo y apoyo, estare al pendiente.
procedure TfrBandejaAutorizaPedidos.Button1Click(Sender: TObject); var MailMessage: TIdMessage; SMTP: TIdSMTP; begin SMTP.Host := '192.168.0.150'; SMTP.Port := 25; SMTP.Username := '[email protected]'; SMTP.Password := 'desarrolloit'; MailMessage.Recipients.add; MailMessage.Recipients[0].Name:='Sistema de Produccion'; MailMessage.Recipients[0].Address:='[email protected]'; MailMessage.From.Address :='[email protected]'; MailMessage.From.Name :='Ordenes'; MailMessage.Recipients.EMailAddresses :='[email protected]'; MailMessage.Subject :='Listado de Ordenes'; MailMessage.Body.Text :='Verificar Archivo Adjunto'; if FileExists('D:\Pruebas.txt') then TIdAttachmentFile.Create(MailMessage.MessageParts, 'D:\Pruebas.txt'); try try SMTP.Connect; SMTP.Send(MailMessage); except on E:Exception do ShowMessage(E.Message); end; finally if SMTP.Connected then SMTP.Disconnect; end; end; end; |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Problema con Indy en delphi 2010, enviando emails | edtruji | Internet | 1 | 17-08-2010 18:17:31 |
| Como reemplazar Indy 10 por Indy 9 en Delphi 2007 ? | rolandoj | Internet | 0 | 13-02-2008 18:44:31 |
| Problema descargando con Indy 10 y Delphi 2007 vía TidHTTP | rolandoj | Internet | 0 | 08-02-2008 04:22:02 |
| Problema al instalar Indy 10 en Delphi 4 | xio | Internet | 8 | 16-11-2007 22:01:02 |
| Problema en la Instalacion de Indy 10 en Delphi 5 | ASAPLTDA | Internet | 4 | 30-01-2005 05:45:25 |
|