![]() |
![]() |
![]() |
![]() |
![]() |
FTP | ![]() |
![]() |
CCD | ![]() |
![]() |
Buscar | ![]() |
![]() |
Trucos | ![]() |
![]() |
Trabajo | ![]() |
![]() |
Foros | ![]() |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
![]() |
|
Herramientas | Buscar en Tema | Desplegado |
|
#1
|
|||
|
|||
Problema con librerias SSL al enviar email
Hola a todos, estoy desarrollando una App que envia un email a mi cuenta de correo (GMail), y utilize el siguiente codigo:
procedure TForm1.btnConnectClick(Sender: TObject); var SMTP: TIdSMTP; Mail: TIdMessage; begin IdSMTP_SendMail := TIdSMTP.Create(Self); with IdSMTP_SendMail do begin IoHandler:=SSLIOHandler; AuthType := satDefault; Host := 'smtp.gmail.com'; port := 465 ; useTLS:=utUseExplicitTLS; Username := mi_cuenta; Password := mi_password; end; mail := TIdMessage.Create(Self); with mail do begin From.Address := mi_cuenta; Recipients.EMailAddresses := cuenta_del_destinatario; Subject := 'Hola'; body.Text := 'Esto es una prueba'; end; IdSMTP_SendMail.Connect; IdSMTP_SendMail.Send(mail); end; //--------------------------------------------- La App me da la siguiente excepcion: First chance exception at $75244B32. Exception class EIdOSSLCouldNotLoadSSLLibrary with message 'Could not load SSL library.'. Process Project1.exe (3360) He descargado e instalado las siguientes librerias: "libeay32.dll", "libSSL32.dll" y "ssleay32.dll", "MSVCR100.dll" y "VSINIT.dll" Las copie en C:\Windows\SysWOW64 ya que tengo Win8 x64. Uso el Embarcadero RAD Studio 2010 y Indy v10.5.5 Agradeceria mucho su ayuda... 1000 Gracias |
#2
|
||||
|
||||
Recuerda poner los tags al código fuente, ejemplo:
![]() Gracias ![]()
__________________
La otra guía de estilo | Búsquedas avanzadas | Etiquetas para código | Colabora mediante Paypal |
#3
|
|||
|
|||
con tap
|
#4
|
||||
|
||||
yn4v4s,
Cita:
El código anterior permite enviar emails usando Gmail como Mail Server por medio de Delphi 7, Indy 9 y openssl096. Quizás funcione correctamente en Delphi 2010 y Indy v10.5.5 Las Dlls Indy openssl096 están disponibles en el link : http://indy.fulgan.com/SSL/Archive/ El código anterior y sus Dlls esta disponible en el link: http://terawiki.clubdelphi.com/Delph...Mail+Gmail.rar Espero sea útil ![]() Nelson. |
#5
|
|||
|
|||
gracias hermano voy a probar
|
#6
|
|||
|
|||
funciono perfecto, gracias hermano.
|
![]() |
|
|
![]() |
||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Problema al enviar un email con acentos en Delphi 2009 | Quim Herrera | Internet | 2 | 18-01-2012 16:43:27 |
Problema con Formato de texto al enviar un email | m.ruiz | Varios | 2 | 07-11-2007 12:59:43 |
Problema al Enviar EMAIL con Indys | AGAG4 | Internet | 1 | 05-04-2006 17:59:17 |
Problema para enviar email con indy delphi7 | cmena | Internet | 2 | 13-10-2005 21:58:55 |
Problema al enviar Email con adjuntos usando el componente Idsmtp de las indy | Nbull | Internet | 2 | 22-11-2004 09:23:38 |
![]() |
|