HBtip good news
Posted: Thu Oct 18, 2012 1:02 am
Hola a todos / Hi all :
despues de mucho renegar con Gmail y la libreria HBTIP pude compilar el ejemplo Gmail y enviarme un Email a mi cuenta de Yahoo mail.
after much renege with Gmail and HBTIP library could compile the example Gmail and email me at my Yahoo mail.
Pasos / Steps :
1) Download Harbour sources https://harbour-project.svn.sourceforge ... nk/harbour
2) Download Harbour Nightly http://sourceforge.net/projects/harbour ... irror=ufpr
3) Modify gmail.prg modify their email data.
4) go to the folder C:\Harbour\contrib\hbtip\tests open a command window.
5) from the command line , Then run gmail
6) Gmail runs and answer with true on success
7) check your account alternative or gmail to verify the correct operation.
Now we have two tools to work with our Email from Harbour
HBTIP and CDOSYS, two different flavors!
enjoy
post data : I'll see you needed to use HBTIP in HMG.3.0.44
despues de mucho renegar con Gmail y la libreria HBTIP pude compilar el ejemplo Gmail y enviarme un Email a mi cuenta de Yahoo mail.
after much renege with Gmail and HBTIP library could compile the example Gmail and email me at my Yahoo mail.
Pasos / Steps :
1) Download Harbour sources https://harbour-project.svn.sourceforge ... nk/harbour
2) Download Harbour Nightly http://sourceforge.net/projects/harbour ... irror=ufpr
3) Modify gmail.prg modify their email data.
Code: Select all
/*
* $Id: gmail.prg 18289 2012-10-11 16:16:32Z vszakats $
*/
/*
* Copyright 2009 Viktor Szakats (harbour syenar.net)
* www - http://harbour-project.org
*/
#require "hbtip"
#include "simpleio.ch"
PROCEDURE Main( cFrom, cPassword, cTo )
hb_default( @cFrom , "danielmaximilianoherrera@gmail.com" )
hb_default( @cPassword, "12348567890" )
hb_default( @cTo , "danielmaximiliano@yahoo.com.ar" )
? hb_SendMail( "smtp.gmail.com",;
465,;
cFrom,;
cTo,;
NIL /* CC */,;
{} /* BCC */,;
"test: body",;
"test: subject",;
NIL /* attachment */,;
cFrom,;
cPassword,;
"",;
NIL /* nPriority */,;
NIL /* lRead */,;
.T. /* lTrace */,;
.F.,;
NIL /* lNoAuth */,;
NIL /* nTimeOut */,;
NIL /* cReplyTo */,;
.T. )
RETURN
4) go to the folder C:\Harbour\contrib\hbtip\tests open a command window.
5) from the command line , Then run gmail
Code: Select all
c:\hb32\bin\hbmk2 -lhbtipssl -lhbssl -llibeay32 -lssleay32 -env:HB_TIP_OPENSSL=yes gmail.prg
Code: Select all
.T.
Now we have two tools to work with our Email from Harbour
HBTIP and CDOSYS, two different flavors!
enjoy
post data : I'll see you needed to use HBTIP in HMG.3.0.44