HBtip good news

HMG en Español

Moderator: Rathinagiri

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

HBtip good news

Post 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 8443 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 8443 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 8443 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
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
IMATECH
Posts: 188
Joined: Sun May 27, 2012 9:33 pm
Location: Brazil: Goiânia-GO.

Re: HBtip good news

Post by IMATECH »

Thanks Daniel !


Will be very usefull...


Best regards...
M., Ronaldo

By: IMATECH

Imation Tecnologia
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HBtip good news

Post by Rathinagiri »

That is it!

Thanks a lot!
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: HBtip good news

Post 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 8424 times
Dedo OK.jpeg
Dedo OK.jpeg (31.81 KiB) Viewed 8424 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: HBtip good news

Post 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
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: HBtip good news

Post 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%
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. 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: HBtip good news

Post 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
Gipuzkoa - ESPAÑA
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: HBtip good news

Post 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.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: HBtip good news

Post 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.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

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