Correo electrónico entrante a través de SSL / incoming Email

HMG Samples and Enhancements

Moderator: Rathinagiri

User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Correo electrónico entrante a través de SSL / incoming Email

Post by danielmaximiliano »

Hola a Todos :

Muchos han tenido problemas con utilizar correo eléctronico con servidores que utilizan SSL como Gmail, Yahoo Mail o Hotmail.
para el correo saliente encontre un forma : Utilizar CDOSYS porque no podia utilizar hb_SendMail dado que habia muchos problemas para compilar la libreria HBTIP con soporte SSL.
a partir de la version Harbour Nightly 18442 no hay ningun problema.
la misma viene con un Batch para compilar dicha libreria desde los fuentes o directamente bajar Harbour Nightly

Utilizando HMG.3.0.46 tampoco hay problemas para compilar este proyecto que permite leer correos desde los 3 servidores conmumente utilizados : Gmail/Yahoo Mail/Hotmail.

solo queda mejorar la rutina de lectura individual de correos ya que por falta de conocimiento de como trabaja dicha libreria (HBTIP)
espero que ayude a muchos ya que no suelo utilizar dicha libreria en mis aplicaciones.

translate Google

Hi Everyone:

Many have had problems with using email servers that use SSL such as Gmail, Yahoo Mail or Hotmail.
for outgoing mail I found a way: Use CDOSYS because I could not use hb_SendMail since had many problems to compile the library with SSL support HBTIP.

from Harbour Nightly version 18442 there is no problem.
it comes with a Batch to compile this library from source or directly down Harbour Nightly

Using HMG.3.0.46 there is no problem compiling this project that allows you to read emails from the 3 servers commonly -
used: Gmail / Yahoo Mail / Hotmail.

only improving routine is individual reading post and that lack of knowledge of how this library works (HBTIP)
I hope it helps a lot and I do not usually use this library in my applications.

/*******************************************************************************************/
Having said that let the images / Dicho esto dejo las imagenes
Gmail   Incomming Mail Server _2012-11-06_23-44-26.jpg
Gmail Incomming Mail Server _2012-11-06_23-44-26.jpg (74.19 KiB) Viewed 10415 times
Gmail   Incomming Mail Server _2012-11-06_23-45-36.jpg
Gmail Incomming Mail Server _2012-11-06_23-45-36.jpg (81.57 KiB) Viewed 10415 times
Still has some bugs as managing the Library Bos Taurus

Work Ok With HMG.3.0.46

Project and Source code

Folder C:\Gmail2
Last edited by danielmaximiliano on Wed Feb 06, 2013 10:02 pm, edited 1 time in total.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: Correo electrónico entrante a través de SSL / incoming E

Post by bpd2000 »

Thanks danielmaximiliano
BPD
Convert Dream into Reality through HMG
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: Correo electrónico entrante a través de SSL / incoming E

Post by srvet_claudio »

danielmaximiliano wrote:Still has some bugs as managing the Library Bos Taurus

Work Ok With HMG.3.0.46
I'm sorry Daniel, I forgot to put in the file ChangeLog of the Bos Taurus 1.0.1 (HMG 3.0.46) that the functions: BT_FillRoundRect and BT_FillRectangle have been renamed as BT_DrawFillRoundRect and BT_DrawFillRectangle respectively.
Best regards,
Claudio.

Code: Select all

/*****************************************************************************/   
 Procedure ON_PAINT_Incomming()
/*****************************************************************************/
 LOCAL nWidth  := BT_ClientAreaWidth  ("Incomming")
 LOCAL nHeight := BT_ClientAreaHeight ("Incomming")  
 LOCAL hDC, BTstruct , nTypeText
   nTypeText  := BT_TEXT_OPAQUE + BT_TEXT_BOLD + BT_TEXT_UNDERLINE + BT_TEXT_ITALIC
   hDC = BT_CreateDC ("Incomming", BT_HDC_INVALIDCLIENTAREA, @BTstruct)

//   BT_FillRectangle (hDC, 100 ,   2 , nWidth , nHeight  , GREEN , GREEN , 1 )
//   BT_FillRoundRect (hDC, 190 , 445 ,  575 , 410 , 8, 8 , GREEN , WHITE , 2)

BT_DrawFillRectangle (hDC, 100 ,   2 , nWidth , nHeight  , GREEN , GREEN , 1 )
BT_DrawFillRoundRect (hDC, 190 , 445 ,  575 , 410 , 8, 8 , GREEN , WHITE , 2)

 Return
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
paimar
Posts: 64
Joined: Wed May 23, 2012 8:52 pm

Re: Correo electrónico entrante a través de SSL / incoming E

Post by paimar »

Muchisimas gracias , estaba esperando como agua de mayo a que lo lograras !!

Seguimos con ello. Ya te ire contando

Un saludo
Gipuzkoa - ESPAÑA
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Correo electrónico entrante a través de SSL / incoming E

Post by danielmaximiliano »

paimar wrote:Muchisimas gracias , estaba esperando como agua de mayo a que lo lograras !!

Seguimos con ello. Ya te ire contando

Hola.

He descargado la ultima version de hmg y al compilar me general el exe bien pero cuando lo ejecutas sale el siguiente error a ver si sabes a que puede ser debido :

No se encuentra el punto de entrada del procedimiento EVP_camelia_128_cbc en la biblioteca de vinculos dinamicos LIBEAY32.dll
Un saludo
Hola Paimar : el día de hoy elimine mi instalacion de HMG.3.0.46 y lo descargue de nuevo desde Sourceforge.net compile de nuevo el ejemplo y funciona sin ningun problema.
no tendras referencia hacia una vieja instalacion de HMG ?
el mismo se compila bien desde el IDE que viene en la ultima version (46)
alguien puede compilar el proyecto y verificar el funcionamiento ? gracias

translate google :

Hello PAIMAR: today delete my installation HMG.3.0.46 and download it again from [url = https://sourceforge.net/projects/hmg/fi ... urce=files] Sourceforge.net [/ url] compile the example and it works without any problem.
will have no reference to an old installation of HMG?
it compiles fine from the IDE that comes in the latest version (46)

¿ someone can compile the project and verify the operation ? thanks
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
paimar
Posts: 64
Joined: Wed May 23, 2012 8:52 pm

Re: Correo electrónico entrante a través de SSL / incoming E

Post by paimar »

Hola


Después de instalar de nuevo la ver46 ahora me sale el cuadro de errores pero no muestra ningún error ni informacion de ningún tipo y tampoco
llega a generar el exe. Sabéis porque puede ser?

gracias
Gipuzkoa - ESPAÑA
User avatar
fchirico
Posts: 324
Joined: Sat Aug 23, 2008 11:27 pm
Location: Argentina

Re: Correo electrónico entrante a través de SSL / incoming E

Post by fchirico »

Daniel, primero quiero agradecerte por compartir tu aplicación.

Al compilar tu ejemplo con la versión 3.0.46 me da el siguiente error:

Harbour 3.2.0dev (Rev. 18443)
Copyright (c) 1999-2012, http://harbour-project.org/
C:/Users/Aborigen/AppData/Local/Temp/hbmk_hadrkq.dir/incomming.o:incomming.c:(.data+0x458): undefined reference to `HB_FUN___HBEXTERN__HBSSL__'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc.exe C:/Users/Aborigen/AppData/Local/Temp/hbmk_hadrkq.dir/incomming.o C:/Users/Aborigen/AppData/Local/Temp/hbmk_hadrkq.dir/hbmk_ccaxot.o C:/Gmail2/_temp.o -mwindows -Wl,--start-group -lhmg -lcrypt -ledit -leditex -lgraph -lhfcl -lini -lreport -lmsvfw32 -lvfw32 -lhbct -lhbwin -lhbmzip -lminizip -lhbmemio -lhbmisc -lhbmysql -lmysql -lhbtip -lsqlite3 -lhbsqlit3 -lsddodbc -lrddsql -lsddmy -lhbodbc -lodbc32 -lhbhpdf -lhbfimage -lhbpgsql -lhbnetio -lxhb -lpng -llibhpdf -lhbvpdf -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainwin -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -oGmail.exe -LE:/hmg.3.0.46/harbour/lib/win/mingw -LE:/hmg.3.0.46/lib


no habrás olvidado adjuntar al proyecto algún .CH? o algo por el estilo?

----------------------------------

Daniel, I first want to thank you for sharing your application.

When compiling your example with version 3.0.46 I get the following error:

Harbour 3.2.0dev (Rev. 18443)
Copyright (c) 1999-2012, http://harbour-project.org/
C:/Users/Aborigen/AppData/Local/Temp/hbmk_hadrkq.dir/incomming.o:incomming.c:(.data+0x458): undefined reference to `HB_FUN___HBEXTERN__HBSSL__'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc.exe C:/Users/Aborigen/AppData/Local/Temp/hbmk_hadrkq.dir/incomming.o C:/Users/Aborigen/AppData/Local/Temp/hbmk_hadrkq.dir/hbmk_ccaxot.o C:/Gmail2/_temp.o -mwindows -Wl,--start-group -lhmg -lcrypt -ledit -leditex -lgraph -lhfcl -lini -lreport -lmsvfw32 -lvfw32 -lhbct -lhbwin -lhbmzip -lminizip -lhbmemio -lhbmisc -lhbmysql -lmysql -lhbtip -lsqlite3 -lhbsqlit3 -lsddodbc -lrddsql -lsddmy -lhbodbc -lodbc32 -lhbhpdf -lhbfimage -lhbpgsql -lhbnetio -lxhb -lpng -llibhpdf -lhbvpdf -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainwin -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -oGmail.exe -LE:/hmg.3.0.46/harbour/lib/win/mingw -LE:/hmg.3.0.46/lib

have not forgotten any. CH to the project? or something like that?
Saludos, Fernando Chirico.
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Correo electrónico entrante a través de SSL / incoming E

Post by danielmaximiliano »

fchirico wrote:Daniel, primero quiero agradecerte por compartir tu aplicación.

Al compilar tu ejemplo con la versión 3.0.46 me da el siguiente error:

Harbour 3.2.0dev (Rev. 18443)
Copyright (c) 1999-2012, http://harbour-project.org/
C:/Users/Aborigen/AppData/Local/Temp/hbmk_hadrkq.dir/incomming.o:incomming.c:(.data+0x458): undefined reference to `HB_FUN___HBEXTERN__HBSSL__'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc.exe C:/Users/Aborigen/AppData/Local/Temp/hbmk_hadrkq.dir/incomming.o C:/Users/Aborigen/AppData/Local/Temp/hbmk_hadrkq.dir/hbmk_ccaxot.o C:/Gmail2/_temp.o -mwindows -Wl,--start-group -lhmg -lcrypt -ledit -leditex -lgraph -lhfcl -lini -lreport -lmsvfw32 -lvfw32 -lhbct -lhbwin -lhbmzip -lminizip -lhbmemio -lhbmisc -lhbmysql -lmysql -lhbtip -lsqlite3 -lhbsqlit3 -lsddodbc -lrddsql -lsddmy -lhbodbc -lodbc32 -lhbhpdf -lhbfimage -lhbpgsql -lhbnetio -lxhb -lpng -llibhpdf -lhbvpdf -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainwin -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -oGmail.exe -LE:/hmg.3.0.46/harbour/lib/win/mingw -LE:/hmg.3.0.46/lib


no habrás olvidado adjuntar al proyecto algún .CH? o algo por el estilo?

----------------------------------

Daniel, I first want to thank you for sharing your application.

When compiling your example with version 3.0.46 I get the following error:

Harbour 3.2.0dev (Rev. 18443)
Copyright (c) 1999-2012, http://harbour-project.org/
C:/Users/Aborigen/AppData/Local/Temp/hbmk_hadrkq.dir/incomming.o:incomming.c:(.data+0x458): undefined reference to `HB_FUN___HBEXTERN__HBSSL__'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc.exe C:/Users/Aborigen/AppData/Local/Temp/hbmk_hadrkq.dir/incomming.o C:/Users/Aborigen/AppData/Local/Temp/hbmk_hadrkq.dir/hbmk_ccaxot.o C:/Gmail2/_temp.o -mwindows -Wl,--start-group -lhmg -lcrypt -ledit -leditex -lgraph -lhfcl -lini -lreport -lmsvfw32 -lvfw32 -lhbct -lhbwin -lhbmzip -lminizip -lhbmemio -lhbmisc -lhbmysql -lmysql -lhbtip -lsqlite3 -lhbsqlit3 -lsddodbc -lrddsql -lsddmy -lhbodbc -lodbc32 -lhbhpdf -lhbfimage -lhbpgsql -lhbnetio -lxhb -lpng -llibhpdf -lhbvpdf -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainwin -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -oGmail.exe -LE:/hmg.3.0.46/harbour/lib/win/mingw -LE:/hmg.3.0.46/lib

have not forgotten any. CH to the project? or something like that?
Hi :
OpenSSL is installed ??
esta instalado OPENSSL ???

http://www.openssl.org
shipping entire project folder with the exe included
Last edited by danielmaximiliano on Wed Feb 06, 2013 10:02 pm, edited 1 time in total.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
paimar
Posts: 64
Joined: Wed May 23, 2012 8:52 pm

Re: Correo electrónico entrante a través de SSL / incoming E

Post by paimar »

Hola

No te entiendo bien, pero no tengo instalado openssl, lo tengo que instalar o es que viene en la ultima version del codigo de gmail2? Y otra cosa
cuando abro el proyecto con el ide en formularios no me aperece el formulario incomming. De todos modos voy a probar en un xp sin ningun hmg instalado para descartar algun conflicto entre versiones.

gracias
Gipuzkoa - ESPAÑA
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Correo electrónico entrante a través de SSL / incoming E

Post by danielmaximiliano »

fchirico wrote: When compiling your example with version 3.0.46 I get the following error:

Harbour 3.2.0dev (Rev. 18443)
Copyright (c) 1999-2012, http://harbour-project.org/
C:/Users/Aborigen/AppData/Local/Temp/hbmk_hadrkq.dir/incomming.o:incomming.c:(.data+0x458): undefined reference to `HB_FUN___HBEXTERN__HBSSL__'

have not forgotten any. CH to the project? or something like that?
in C: \ hmg.3.0.46 \ hmg.hbc would fail to include the missing libraries.

Code: Select all

# paths

incpaths=/.
incpaths=include
libpaths=lib

# main hmg libs

libs=hmg
libs=crypt
libs=edit
libs=editex
libs=graph
libs=hfcl
libs=ini
libs=report

# system libs

libs=msvfw32
libs=vfw32

# harbour contrib libs

libs=hbct
libs=hbwin
libs=hbmzip
libs=minizip
libs=hbmemio
libs=hbmisc
libs=hbmysql
libs=mysql
libs=hbtip
libs=sqlite3
libs=hbsqlit3
libs=sddodbc
libs=rddsql
libs=sddmy
libs=hbodbc
libs=odbc32
libs=hbhpdf
libs=hbfimage
libs=hbpgsql
libs=hbnetio
libs=xhb
libs=png
libs=libhpdf
libs=hbvpdf

# ***** include this lines *****


libs=hbssl
libs=libeay32
libs=ssleay32
Libs=hbtip
Libs=hbtipssl

# ***** include this lines *****

# link compiled resources

sources=${hb_curdir}_temp.o
then from the project folder "Gmail2" included build.bat.
you can double-click or drag and drop gmail.hbp on build.bat to compile the application.
cuando abro el proyecto con el ide en formularios no me aperece el formulario incomming.
The form is available in the folder "Forms", the IDE is accustomed to include in the project examiner other forms belonging to other projects.
call the form using LOAD WINDOW .......
build gmail on hmg.jpg
build gmail on hmg.jpg (125.38 KiB) Viewed 10198 times
Source Files
Last edited by danielmaximiliano on Wed Feb 06, 2013 10:03 pm, edited 1 time in total.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Post Reply