Page 1 of 2

secure email with attachment sending...

Posted: Fri Jan 17, 2014 4:02 am
by hmgchang
Happy New Year All ....
- How can we send email with attachment ( report/dbf) from Hmg program ?
- Can we secure the to only specified email address but not others ?
- If only I can hv a sample on the above issues....

Thks n Rgds

Chang

Re: secure email with attachment sending...

Posted: Fri Jan 17, 2014 4:21 am
by mjaviergutierrez
Hi Chang, I'm just working on it, Here a hb_sendmail () function does not work is presented. I commented to not waste time with that. I have urgency to this issue, and I am working to create a function that really just send an email. As soon as I have news, I'll upload the actual response to the forum. We are working me and my group in that.

Re: secure email with attachment sending...

Posted: Fri Jan 17, 2014 9:58 am
by jayadevu
Hi,

You can use blat for sending email from HMG. More information here: http://www.blat.net/

We have been using this for many years successfully.

Warm regards,

Jayadev

Re: secure email with attachment sending...

Posted: Fri Jan 17, 2014 11:48 am
by jayadevu
Hi,

If it is an alternative, you can use Outlook (from Microsoft) with oOutlook := CreateObject( "Outlook.Application" ) and send mail through outlook.

HTH,

Warm regards,

Jayadev

Re: secure email with attachment sending...

Posted: Fri Jan 17, 2014 12:45 pm
by EduardoLuis
Hi Forumers:

Some time ago, MOL published an excelent routine that lets you send email, with attachments.- I'm using it, and works fine.- Have's 2 limits:
1) Only works with POP3, not with GMAIL and not with Yahoo (i've tested).-
2) By an unknowledge reason you can send any attach file except *.PDF.-
As this function (sendmail) is part of a developement i've made, where info only can be seen by another user of the same developement on another location, i encrypt PDF on another file ending .TXT and then i send it.-
I've test attaching different types of files and except *.PDF with all works fine (Doc, Docx, XLS, XLSX, BMP, JPG, EXE, and so on).-
Daniel Maximiliano, is working on a powerfull routine that lets you send and recieve mails with GMAIL and YAHOO.- He has published an excelent work recently on the forum. Check it.-
Also check Mr. Dyamond Rathinagiri posts, who has published another excelent routine to send and recieve mails.-
With regards Eduardo

Re: secure email with attachment sending...

Posted: Fri Jan 17, 2014 4:05 pm
by mol
I'm on Vacation now, but I'll test attachments sending. Especially .pdf files. It seems very strange...

Re: secure email with attachment sending...

Posted: Fri Jan 17, 2014 5:26 pm
by danielmaximiliano
hmgchang wrote:Happy New Year All ....
- How can we send email with attachment ( report/dbf) from Hmg program ?
- Can we secure the to only specified email address but not others ?
- If only I can hv a sample on the above issues....

Thks n Rgds

Chang
Hi Chang
Try CDOSYS viewtopic.php?p=20107#p20107
Source files download/file.php?id=2044

and Solution " with attachment " for Salamandra friend : http://hmgforum.com/viewtopic.php?p=20435#p20435

Re: secure email with attachment sending...

Posted: Fri Jan 17, 2014 6:38 pm
by EduardoLuis
Hola Dany:

Estuve probando el Gmail que recomendas, y me da el siguiente error (adjunto jpg).-
Verifiqué el código y las sugerencias de Salamandra y todo esta Ok.-
El test lo hice con 2 servidores Gmail y Yahoo
Si te te ocurre alguna sugerencia. Gracias.-
Un abrazo.-
Eduardo

Re: secure email with attachment sending...

Posted: Fri Jan 17, 2014 8:39 pm
by danielmaximiliano
Hola Eduardo y a todos en el Foro.

Sencillamente no funciona correctamente porque las configuraciones cambian el los servidores SMTP

modifique para Yahoo Argentina el servidor y el puerto y funciona correctamente como con Gmail.
para Hotmail cambiaron los servidores de microsost para utilizar Outlook.com pero no encuentro bien la configuracion para el mismo.
como Gmail hay que configurar la cuenta para acceder a POP3 y SMTP desde aplicaciones externas (Outlook, Thunderbird, etc)
tengo hecho las modificaciones en Outlook.com pero sigo sin poder enviar email.
generalmente los puertos SMTP son 25 / 465 / 587 pero no funciona.
se necesitaria saber como funciona la autentificacion de Outlook.com

Translate Google

Hi Eduardo and everyone on the forum.

Simply not working properly because the settings change the SMTP servers

Yahoo Argentina customize the server and port and works properly as Gmail.
changed to Hotmail servers to use microsoft Outlook.com but feel good settings for it.
as you have to configure Gmail account for POP3 and SMTP access from external applications (Outlook, Thunderbird, etc)
I have made ​​modifications Outlook.com but still can not send email.
generally the SMTP port is 25/465/587 does not work.
be needed to know how the authentication of works Outlook.com
yahoo server.jpg
yahoo server.jpg (35.85 KiB) Viewed 5593 times
gmail server.jpg
gmail server.jpg (36 KiB) Viewed 5593 times
CDOsys.rar
(45.61 KiB) Downloaded 331 times

Re: secure email with attachment sending...

Posted: Fri Jan 17, 2014 8:51 pm
by EduardoLuis
Hola Dany:

Desde ya infinitamente agradecido por tu colaboración y mas por tus enormes conocimientos.-
En efecto, funciona y correctamente.- He hecho las pruebas tanto con Yahoo como Gmail y en ambos casos la transmisión se hizo sin ningún problema.-
Gracias nuevamente.- Un abrazo. Eduardo.-