HBtip good news

HMG en Español

Moderator: Rathinagiri

Post Reply
User avatar
danielmaximiliano
Posts: 2142
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 155 times
Been thanked: 23 times
Contact:

HBtip good news

Post by danielmaximiliano » 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.

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

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

User avatar
IMATECH
Posts: 174
Joined: Sun May 27, 2012 9:33 pm
Location: Brazil: Goiânia-GO.
Has thanked: 1 time
Been thanked: 3 times

Post by IMATECH » Thu Oct 18, 2012 2:11 am

Thanks Daniel !


Will be very usefull...


Best regards...
M., Ronaldo

By: IMATECH

Imation Tecnologia

User avatar
Rathinagiri
Posts: 5263
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Thu Oct 18, 2012 2:18 am

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: 2142
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 155 times
Been thanked: 23 times
Contact:

Post by danielmaximiliano » Thu Oct 18, 2012 2:58 am

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

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

User avatar
danielmaximiliano
Posts: 2142
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 155 times
Been thanked: 23 times
Contact:

Post by danielmaximiliano » Thu Oct 18, 2012 3:15 am

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

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

User avatar
danielmaximiliano
Posts: 2142
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 155 times
Been thanked: 23 times
Contact:

Post by danielmaximiliano » Mon Nov 05, 2012 5:56 am

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

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

paimar
Posts: 64
Joined: Wed May 23, 2012 8:52 pm

Post by paimar » Mon Nov 05, 2012 9:06 pm

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: 2142
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 155 times
Been thanked: 23 times
Contact:

Post by danielmaximiliano » Mon Nov 05, 2012 10:03 pm

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

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

User avatar
danielmaximiliano
Posts: 2142
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 155 times
Been thanked: 23 times
Contact:

Post by danielmaximiliano » Wed Nov 07, 2012 3:38 am

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

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

Post Reply