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
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Jayadev: New Member Introduction

Post by danielmaximiliano »

Work :

Code: Select all

#include <hmg.ch>

#require "hbtip"
REQUEST __HBEXTERN__HBSSL__

#include "simpleio.ch"

PROCEDURE Main
Public cFrom, cPassword, cTo , cPort

   IF ! tip_SSL()
      ? "Error: Requires SSL support"
      RETURN
   ENDIF

   hb_default( @cFrom    , "user@gmail.com" )
   hb_default( @cPassword, "passxxxx" )
   hb_default( @cTo      , "to@server.com" )
   hb_default( @cPort    , "465" )

   ? hb_SendMail( ;
      "smtp.gmail.com", ;
      Val(cPort), ;
      cFrom, ;
      cTo, ;
      NIL /* CC */, ;
      {} /* BCC */, ;
      "test: body", ;
      "test: port "+cPort, ;
      NIL /* attachment */, ;
      cFrom, ;
      cPassword, ;
      "", ;
      NIL /* nPriority */, ;
      NIL /* lRead */, ;
      .T. /* lTrace */, ;
      .F., ;
      NIL /* lNoAuth */, ;
      NIL /* nTimeOut */, ;
      NIL /* cReplyTo */, ;
      iif(cPort=="465",.T.,.F.) /* lSSL */  )

   RETURN
   
[attachment=2]2016-12-06 09_02_00-Examinador de Proyecto [mimail.hbp].png[/attachment]

[attachment=1]mi pc.png[/attachment]

[attachment=0]correo.png[/attachment]
Install openSSL From : https://slproweb.com/products/Win32OpenSSL.html
Attachments
correo.png
correo.png (59.99 KiB) Viewed 3582 times
mi pc.png
mi pc.png (24.53 KiB) Viewed 3582 times
2016-12-06 09_02_00-Examinador de Proyecto [mimail.hbp].png
2016-12-06 09_02_00-Examinador de Proyecto [mimail.hbp].png (5.69 KiB) Viewed 3582 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
luisvasquezcl
Posts: 1258
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Contact:

Re: Jayadev: New Member Introduction

Post by luisvasquezcl »

Hi, Welcome.
Best Regards,
Luis Vasquez.
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 »

Qué bueno Daniel. Entonces funciona ? Felicitaciones.

That's good Daniel. Then it works? Congratulations.
Last edited by Pablo César on Tue Dec 06, 2016 8:54 pm, edited 1 time in total.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Jayadev: New Member Introduction

Post by danielmaximiliano »

Si funciona, con la instalacion de las dll en la carpeta de la aplicacion como se ve en la captura

If it works, with the installation of the dll in the folder of the application as seen in the capture
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

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