Jayadev: New Member Introduction

New members who wish to post and participate in HMG Forum, please introduce yourselves in this forum by starting a new thread.

Moderator: Rathinagiri

User avatar
millipede
Posts: 10
Joined: Thu May 14, 2009 7:36 am
Location: Mexico DF
Contact:

Re: Jayadev: New Member Introduction

Post by millipede »

Hola Jayadev

Bienvenido a esta comunidad

saludos.
User avatar
swapan
Posts: 242
Joined: Mon Mar 16, 2009 4:23 am
Location: Kolkata, India
Contact:

Re: Jayadev: New Member Introduction

Post by swapan »

Dear Jayadev,

Hello n' Hi!

Welcome to HmgForum! In anycase you are a veteran in Clipper and you are using xHarbour for quite long. When you've started xHarobur, I had no idea about it! I had just heard about xBase++, but never installed and tried it. So I assume you can contribute a lot here also. Yes I too noticed your name esp. it was an indian name. Its great now officially we are four members in this forum from India. In India most of the Clipper guys and software firms based on Clipper platform have moved to different platforms, but this xHarbour/Harbour and HMG like addons have given a new "life" to clipper programming. May be its too late but still better then never. I was scared of HMG, but Sudip insisted me to have a try, and today I'm gradually learning it.

BTW Jayadev, are you a freelancer or working for an organisation?

Regards
Swapan
Thanks & Regards,
Swapan Das

http://www.swapandas.com/
jayadevu
Posts: 238
Joined: Tue May 19, 2009 7:10 am

Re: Jayadev: New Member Introduction

Post by jayadevu »

Dear Friends,

Many thanks for the warm welcome from Mr. Milipee, Mr. Mr. Salamandra, Mr. Vanguarda and Mr. Swapan.

Swapan, I am a free lancer.

Warm regards,

Jayadev.
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: Jayadev: New Member Introduction

Post by sudip »

jayadevu wrote: Swapan, I am a free lancer.
Me too :D (Another similarity ;) )

Regards.

Sudip
With best regards,
Sudip
neosoftservices
Posts: 5
Joined: Tue Nov 08, 2016 1:27 pm

Neosoftservices:New member from india

Post by neosoftservices »

i am newer member join HMG on 08-nov-2016
i am using HMG Ansi Version for console application,

any one can help me for hb_sendmail() functionality
when i am using hb_sendmail() Error:unsuccessfull
source code:

Code: Select all

PROCEDURE Mymail( cFrom, cPassword, cTo, cProvider, cSubjects, aAttachment )
	 
	LOCAL cHost
	LOCAL lSTARTTLS := .F.
	
	IF !tip_ssl()
		? "Error: Requires SSL support"
		RETURN
	ENDIF
	
	cHost := "smtp.gmail.com"
	
	  lRet:= hb_sendmail( cHost, ;
	      iif( lSTARTTLS, 587, 465 ), ;
	      cFrom, ;
	      cTo, ;
	      NIL /* CC */, ;
	      {} /* BCC */, ;
	      "Please Find Attached Documents", ;
	      cSubjects,;				//"test: subject sending syslock file from neosoft-testing", ;
	      aAttachment, ;		    //{"c:\neosoft\syslock.dbf","c:\neosoft\syslock1.cdx"},;		//NIL /* attachment */, ;
	      cFrom, ;
	      cPassword, ;
	      "", ;
	      NIL /* nPriority */, ;
	      NIL /* lRead */, ;
	      .F. /* lTrace */, ;
	      .F., ;
	      NIL /* lNoAuth */, ;
	      NIL /* nTimeOut */, ;
	      NIL /* cReplyTo */, ;
	      !lSTARTTLS )
	RETURN lRet
*------------------------------------------*------------------------------------------*------------------------------------------*
Function AddAttachment()
   local aFiles  , aArchives     := {}
   local nI , hZip ,  cArq
    Local cComment    := "Multiple Files in Zip"   
    Local FileNameZip := DiskName() + ":\" + CurDirectory + "\Attachment.zip"
    /* Search Files */
   aFiles := Getfile ( { {'All Files','*.*'} } , 'Get attachment' , 'c:\' , .t. , .t. )
   For nI:=1 to len( aFiles )
      hb_FNameSplit( aFiles [ nI ] ,@cFilePath , @cFileName, @cFileExt )
       aadd(aArchives , cFilePath + cFileName + cFileExt )
    next
   
/*   If len( aFiles ) > 0
      If len( aFiles ) == 1
         Mailattachment( cFilePath + cFileName + cFileExt  )
      Else
        hZip := HB_ZIPOPEN( FileNameZip )
        FOR EACH cArq IN aArchives
             HB_ZipStoreFile( hZip, cArq , cComment)
          NEXT
       HB_ZipFileClose( hZip ) 
       Mailattachment( FileNameZip )
      Endif   
       oMail:attach( oAttachments ) 
   Endif		*/
Return (aArchives)

Warm regards

neosoftservices
User avatar
serge_girard
Posts: 3161
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Jayadev: New Member Introduction

Post by serge_girard »

Hi Neo, Welcome from Belgium !

hb_sendmail works fine but I'm not sure how it works with GMAIL.
Pablo or Daniel will certanly explain!

Serge
There's nothing you can do that can't be done...
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Jayadev: New Member Introduction

Post by mol »

You must search on the forum.
This topic was described many times.
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Jayadev: New Member Introduction

Post by Pablo César »

I wish I could help, but I have no experience with hb_sendmail. Recently I posted part of Viktor's forked Harbor ChangeLog where it mentions that it fixed some bugs. But we did not use that Harbour ...

Who really can guide you better is Daniel Maximiliano. He knows a lot about this subject.

Here's a topic in Spanish that might help until Daniel makes contact: viewtopic.php?p=45049#p45049
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Jayadev: New Member Introduction

Post by danielmaximiliano »

Hola Neosoftservices : Gmail y otros por defecto no permite conexiones de terceros a sus cuentas de correo , por ello necesita uds en la configuracion de la cuenta permitir estas conexiones ....

Hello Neosoftservices: Gmail and others by default does not allow third-party connections to your mail accounts, so you need to uds in the account configuration allow these connections ....

ENG : https://support.google.com/accounts/ans ... ?hl=en-419

ESP : https://support.google.com/accounts/ans ... ?hl=en-419

la configuracion saliente por defecto de Gmail es smtp.gmail.com port :465

incluir / include

Code: Select all

#include 'hmg.ch'
#include "simpleio.ch"
#require "hbtip"
#require "hbssl"

REQUEST __HBEXTERN__HBSSL__
cualquier necesidad estamos aqui para ayudarlo. Any need we are here to help you.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Jayadev: New Member Introduction

Post by Pablo César »

Hola Daniel,

En este tópico de febrero de 2016 (no muy antiguo, del forum de PCToledo en portugues) menciona que manda con suceso. Por lo que leo, parece que funciona con el Harbour de Viktor, menciona sobre la falta de um archivo LIBEAY32.DDL pero parece funcionar. Vos ya tuviste alguna experiencia con ese otro Harbour y hb_sendmail ?

--- Google translated ---

Hello Daniel,

In this topic of February 2016 (not very old, from PCToledo forum in Portuguese) he mentions that he rules with success. From what I read, it seems to work with Viktor's Harbor, mentions about the lack of a LIBEAY32.DDL file but it seems to work. Did you already have any experience with that other Harbor and hb_sendmail?
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Post Reply