SendMail first preview

HMG Samples and Enhancements

Moderator: Rathinagiri

User avatar
quartz565
Posts: 667
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Contact:

Re: SendMail first preview

Post by quartz565 »

Thank you Marek !!
Best Regards,
Nikos.

os: Windows Server 2019 - 64
Mario Mansilla
Posts: 269
Joined: Wed Aug 13, 2008 2:35 pm
Location: Córdoba - Argentina

Re: SendMail first preview

Post by Mario Mansilla »

Hola :
Necesito un pequeño programa que realize el envio de un documento . Intento utilizar este ejemplo para enviarme un correo a mi gmail sin resultados .
Alguien pudo enviar correo con este ejemplo

Completo los campos correspondientes a mi correo y en los siguientes :

POP3SERVER : pop.gmail.com
SMPTSERVER : smtp.gmail.com

POP3USER : pop.gmail.com
SMPTUSER : smtp.gmail.com

POP3PASSWORD : miclave
SMTPPASSWORD : miclave
SMTP PORT : 587 / 465

Hello: I need a small program that performs sending of a document. I attempt to use this example to send an email to my gmail without results.
Someone could send mail to this example
Complete the fields for my mail and the following:

POP3SERVER : pop.gmail.com
SMPTSERVER : smtp.gmail.com

POP3USER : pop.gmail.com
SMPTUSER : smtp.gmail.com

POP3PASSWORD : miclave
SMTPPASSWORD : miclave
SMTP PORT : 587 / 465

Saludos
Mario Mansilla
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: SendMail first preview

Post by danielmaximiliano »

Hola Mario :
debido a problemas de seguridad con servidores seguros es necesario que ud, haga cambios en su cuenta añexando a su configuracion Gmail que utilizara aplicaciones de terceros e indicara una contraseña para esa aplicacion.
https://support.google.com/accounts/ans ... 0255?hl=es

/********************************************************************************************************************/

debe entrar a https://mail.google.com/mail/u/0/#settings/fwdandpop y habilitar POP .

/********************************************************************************************************************/

despues instalara OpenSSL y compilara los fuentes de HB_SSLy los agregara a su aplicacion.
32 bits http://slproweb.com/download/Win32OpenSSL-1_0_2e.exe
64 bits http://slproweb.com/download/Win64OpenSSL-1_0_2e.exe

no importa que version utilise , use la carpeta como se ve en la imagen [attachment=0]openssl.jpg[/attachment]
despues le envio el fuente necesario para adjuntar a su aplicacion
Attachments
openssl.jpg
openssl.jpg (26.47 KiB) Viewed 5441 times
Last edited by danielmaximiliano on Tue Dec 08, 2015 1:55 pm, edited 1 time in total.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Mario Mansilla
Posts: 269
Joined: Wed Aug 13, 2008 2:35 pm
Location: Córdoba - Argentina

Re: SendMail first preview

Post by Mario Mansilla »

Hola Daniel :
entonces debo descargar primero openssl desde la direccion que proporcionas y lo instalo en mi pc y desde luego en la pc donde se intala el sistema .
Los fuentes de hb_ssl me los envias o de donde los obtengo .
Para compilarlo con el sistema donde los anexo uso el IDE (Ansi) de HMG 3.4.1 .
Saludos
Mario Mansilla

Hi Daniel :
then I must first download openssl from the address you provide and install it on my pc and from then on the PC where the system is intala.
The sources hb_ssl or send them where I get.
To compile the system where Annex I use the IDE (Ansi) HMG 3.4.1.
Cheers
Mario Mansilla
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: SendMail first preview

Post by danielmaximiliano »

Hola Mario :
si debes bajar OpenSSL la version de desarrollo o Light desde esta direccion.. http://slproweb.com/products/Win32OpenSSL.html

te envio las librerias compiladas porque son engorrosas compilarlas ya que se hace desde harbour fuentes, intente con harbour nightly pero dan error

despues debes modificar HMG.HBP para incluir dichas librerias y compilar todo de nuevo en HMG, tanto 64 como 32 bits
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Mario Mansilla
Posts: 269
Joined: Wed Aug 13, 2008 2:35 pm
Location: Córdoba - Argentina

Re: SendMail first preview

Post by Mario Mansilla »

Perfecto Daniel espero por las librerias
Saludos
Mario mansilla
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: SendMail first preview

Post by danielmaximiliano »

Hola Mario y a todos los demas muchachos de HMGforum...

perdón la tardanza, encontre errores en la compilacion con harbour Nightly descargado con gitHub, estoy hablando de la compilacion en 64bits, antes no tenia ese error y estoy verificando que no haya cambios con la anterior version de harbour.
hoy 12-10-2015 hubo una correccion en hbssl .
[attachment=0]Github.jpg[/attachment]

agregar a hmg.hbc linea 50

Code: Select all

libs=hbssl
dejo los fuentes de la libreria hbssl para compilar con HMG.3.4.2 patch 3, estas librerias que se crean a partir compile.bat o compile64.bat de tener instalado openssl 32 bits en la carpeta c:/OpenSSL-Win32 como viene por defecto.

estas libreria comienzan con lib*.a y necesitan ser copiados a la carpeta c:/hmg.3.4.2/lib
Attachments
Github.jpg
Github.jpg (77.29 KiB) Viewed 5368 times
hbssl.rar
(172.63 KiB) Downloaded 258 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Mario Mansilla
Posts: 269
Joined: Wed Aug 13, 2008 2:35 pm
Location: Córdoba - Argentina

Re: SendMail first preview

Post by Mario Mansilla »

Hola Daniel :
muchas gracias por tu ayuda .
Cree un pequeño proyecto basado en el ejemplo gmail.prg de las contribuciones de harbour .
Me envie un correo a mi cuenta gmail y recibi en mi cuenta un mensaje que se esta intentando abrir una sesion desde una aplicacion no segura . A partir de esto la funcion hb_sendmail se ejecuta y me envia el mensaje pero aparentemente google me bloquea el mismo .
No sabes si necesito configurar algo mas en la cuenta .

Saludos
Mario Mansilla

thank you very much for your help .
Create a small project based on the example of the contributions gmail.prg Harbour.
I send an email to my gmail account in my account and received a message that you are trying to open a session from an unsecured application. From this the hb_sendmail function runs and sends me the message but apparently blocking me google it.
Not sure you need to configure anything else in the email.
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: SendMail first preview

Post by danielmaximiliano »

Mario Mansilla wrote: thank you very much for your help .
Create a small project based on the example of the contributions gmail.prg Harbour.
I send an email to my gmail account in my account and received a message that you are trying to open a session from an unsecured application. From this the hb_sendmail function runs and sends me the message but apparently blocking me google it.
Not sure you need to configure anything else in the email.
Hola Mario: Gmail tiene caracteristicas de seguridad para cuentas de correos hay politicas para aplicaciones de terceros y es necesario agregarlas en tu cuenta.
puede ser que tambien tengas que incluir una contraseña para esa aplicacion.
Translate Google :
Hello Mario: Gmail has safety features for email accounts are no policies for third party applications and need to add them to your account.

you might have to also include a password for that application.

Habilitar / Enable POP3


https://mail.google.com/mail/u/0/#settings/fwdandpop

aplicaciones menos seguras / less secure applications

https://www.google.com/settings/security/lesssecureapps

Error de contraseña incorrecta / Incorrect password error

https://support.google.com/accounts/answer/6009563
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Mario Mansilla
Posts: 269
Joined: Wed Aug 13, 2008 2:35 pm
Location: Córdoba - Argentina

Re: SendMail first preview

Post by Mario Mansilla »

Hola Daniel :
perfecto ahora ya a traves de mi cuenta gmail ya puedo enviar correos a gmail , outlook , hotmail , arnet y fibertel que son los que tengo disponibles . Luego intentare realizar lo mismo con los otros servidores .
Ahora bien cuando intendo enviar al grupo de yahoo todoclipper o bien harbour minigui me da un mensaje en mi correo que no se puede entregar el correo por posible infraccion a las reglas . Sera que lo toma como que estoy enviando un correo no deseado o bien intento de correo masivo . Sin embargo cuando envio el mismo contenido de correo desde gmail no hay problemas .
Si bien la aplicacion enviara por email pdfs de presupuestos y facturas a clientes no a grupos de correo , no tienes informacion si es posible evitar esta situacion .

Saludos
Mario Mansilla

Hi Daniel :
now perfect through my gmail account and can send mail to Gmail, Outlook, Hotmail, and fibertel arnet are those who I have available. Then I will try to do the same with the other servers.
But when intendo send the yahoo group todoclipper or harbor minigui gives me a message on my e-mail can not be delivered by mail possible breach of the rules. Will you take it like I'm sending a spam or bulk mail attempt. But when sending the same mail content from Gmail no problems.
While the application sent by email pdfs of quotes and invoices to customers not mail groups, you do not have information if possible to avoid this situation.
Post Reply