Page 1 of 1

HBtip good news

Posted: Thu Oct 18, 2012 1:02 am
by danielmaximiliano
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.

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.
tests_2012-10-17_21-18-36.jpg
tests_2012-10-17_21-18-36.jpg (116.26 KiB) Viewed 6677 times
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 
Administrador Cwindowssystem32cmd.jpg
Administrador Cwindowssystem32cmd.jpg (107.29 KiB) Viewed 6677 times
6) Gmail runs and answer with true on success

Code: Select all

.T.
7) check your account alternative or gmail to verify the correct operation.
(2 no leídos) - danielmaximiliano - Yahoo! Mail - Mozilla Firefox_2012-10-17_21-30-16.jpg
(2 no leídos) - danielmaximiliano - Yahoo! Mail - Mozilla Firefox_2012-10-17_21-30-16.jpg (81.26 KiB) Viewed 6677 times
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

Re: HBtip good news

Posted: Thu Oct 18, 2012 2:11 am
by IMATECH
Thanks Daniel !


Will be very usefull...


Best regards...

Re: HBtip good news

Posted: Thu Oct 18, 2012 2:18 am
by Rathinagiri
That is it!

Thanks a lot!

Re: HBtip good news

Posted: Thu Oct 18, 2012 2:58 am
by danielmaximiliano
rathinagiri wrote:That is it!

Thanks a lot!
easy but gave many headaches, Tiptest works wonders.
Now to figure out how to read email from Gmail.
tiptest.prg.jpg
tiptest.prg.jpg (91.92 KiB) Viewed 6658 times
Dedo OK.jpeg
Dedo OK.jpeg (31.81 KiB) Viewed 6658 times

Re: HBtip good news

Posted: Thu Oct 18, 2012 3:15 am
by danielmaximiliano
danielmaximiliano wrote:
rathinagiri wrote:That is it!

Thanks a lot!
easy but gave many headaches, Tiptest works wonders.
Now to figure out how to read email from Gmail.
Problema resuelto por el amigo Alex Gustow / Problem solved by friend Alex Gustow

How to get attachment(s) from mail? : http://hmgforum.com/viewtopic.php?f=5&t=967

Re: HBtip good news

Posted: Mon Nov 05, 2012 5:56 am
by danielmaximiliano
Yesterday 04/11/2012 there was an updated HBtip, included a batch file to compile the example Gmail.prg
Thanks Viktor Szakats to improve Harbour every day, many users will be grateful for improving the compilation of this library with SSL support.

batch file in C:\hb32\contrib\hbtip\tests\Gmail.bat

Code: Select all

@echo off
set HB_WITH_OPENSSL=c:\openssl\include\openssl
set HB_STATIC_OPENSSL=yes 
set backup=%path%
set path=%backup%;c:\hb32\bin
hbmk2 -lhbtipssl -lhbssl -llibeay32 -lssleay32 -env:HB_TIP_OPENSSL=yes gmail.prg 
set path=%backup%

Re: HBtip good news

Posted: Mon Nov 05, 2012 9:06 pm
by paimar
Hi. Any sample for reading gmail mail for dummies (excuse my horrible english)

Hola. Algun ejemplo de leer el correo de gmail para dummies?


thanks/gracias

Re: HBtip good news

Posted: Mon Nov 05, 2012 10:03 pm
by danielmaximiliano
paimar wrote:Hi. Any sample for reading gmail mail for dummies (excuse my horrible english)

Hola. Algun ejemplo de leer el correo de gmail para dummies?


thanks/gracias
Hola Paimar:
estoy armando el ejemplo para leer los corres de Gmail, mire todas las funcions que contiene la Libreria HB_tip y apenas tenga algo desarrollado lo publico.
no uso Gmail en mis aplicaciones ni nada que sea Email; pero a muchos amigos de Harbour tienen ese inconveniente.

Re: HBtip good news

Posted: Wed Nov 07, 2012 3:38 am
by danielmaximiliano
paimar wrote:Hi. Any sample for reading gmail mail for dummies (excuse my horrible english)

Hola. Algun ejemplo de leer el correo de gmail para dummies?


thanks/gracias
http://hmgforum.com/viewtopic.php?f=9&t=2559
ahi tenes lo que pedias, falta un poco mas pero creo que te ayudara.
cualquier cosa lo sigo mejorando.