Re: Print Preview - Button Send mail
Moderator: Rathinagiri
- dragancesu
- Posts: 926
- Joined: Mon Jun 24, 2013 11:53 am
- DBs Used: DBF, MySQL, Oracle
- Location: Subotica, Serbia
Print Preview - Button Send mail
HMG is excellent and it's hard to find something that should be added and it was interesting to all users
Looking at the other tools and their "print preview" many have the "sent by mail"
I do not know how hard it is to add but it would be useful
Looking at the other tools and their "print preview" many have the "sent by mail"
I do not know how hard it is to add but it would be useful
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Print Preview - Button Send mail
Nice idea Dragan.
I was looking examples for send by email in Print Preview and I saw this:
I found interesting options and way to export in "Save as" for our Print Preview, nice ones too.
I'm imagining this option for send by email, should be easier to execute file for sending by default email engine.
Otherwise will be necessary for configuring a database of Server/E-mail.
I do not know how is actually working all these of sending emails. Probably Maximiliano Daniel or anyone else could make any comments about. I'm very interested to know.
I know in Harbour soffered some modify, change an adding about hb_sendmail(...), ActivateSSL, DetectSecurity, gmail.prg
So IMHO it's much easier to let operating system to care sending email engine. For example to create EML or MHT text files formats containing duly standard file structure for this propose. You can read and watch video for some more info at: http://www.coolutils.com/formats/eml
I was looking examples for send by email in Print Preview and I saw this:
I found interesting options and way to export in "Save as" for our Print Preview, nice ones too.
I'm imagining this option for send by email, should be easier to execute file for sending by default email engine.
Otherwise will be necessary for configuring a database of Server/E-mail.
I do not know how is actually working all these of sending emails. Probably Maximiliano Daniel or anyone else could make any comments about. I'm very interested to know.
I know in Harbour soffered some modify, change an adding about hb_sendmail(...), ActivateSSL, DetectSecurity, gmail.prg
So IMHO it's much easier to let operating system to care sending email engine. For example to create EML or MHT text files formats containing duly standard file structure for this propose. You can read and watch video for some more info at: http://www.coolutils.com/formats/eml
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: Print Preview - Button Send mail
Good Idea!
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
- dragancesu
- Posts: 926
- Joined: Mon Jun 24, 2013 11:53 am
- DBs Used: DBF, MySQL, Oracle
- Location: Subotica, Serbia
Re: Print Preview - Button Send mail
It was just an idea, what would facilitate the user to work with report
Look for example pdf reader, office: Word, Excel and other, they have send
This option open the default mail client and a file that can be sent as an attached attacment
Look for example pdf reader, office: Word, Excel and other, they have send
This option open the default mail client and a file that can be sent as an attached attacment
Re: Print Preview - Button Send mail
The main problem is that we can only generate pdf, csv, text and image files without using external applications (excel, openoffice calc).
But, we can create print preview interface which should have parameters which export is available to avoid runtime errors
But, we can create print preview interface which should have parameters which export is available to avoid runtime errors
- serge_girard
- Posts: 3178
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: Print Preview - Button Send mail
Very good idea Dragan!
Serge
Serge
There's nothing you can do that can't be done...
- danielmaximiliano
- Posts: 2614
- Joined: Fri Apr 09, 2010 4:53 pm
- Location: Argentina
- Contact:
Re: Print Preview - Button Send mail
Hola Pablo y otros :
creo que la funcion Print Preview necesita agregar un boton para envio de email enviando los datos con CdoSys en windows.
otra caracteristica esta especifica aqui : https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
tambien puede ser usar la funcion ShellExecute
Translate Google
Hi Pablo and others:
I think the Print Preview function need to add a button to send us an email sending data with CdoSys in windows.
another feature is specified here: https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
creo que la funcion Print Preview necesita agregar un boton para envio de email enviando los datos con CdoSys en windows.
otra caracteristica esta especifica aqui : https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
tambien puede ser usar la funcion ShellExecute
Code: Select all
ShellExecute(NULL, "open", "mailto:opa@gmail.com", "", "", SW_SHOWNORMAL )
Hi Pablo and others:
I think the Print Preview function need to add a button to send us an email sending data with CdoSys in windows.
another feature is specified here: https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Print Preview - Button Send mail
Thank you Daniel for your prompt reply.
Seems very interesting what you said, but for me this is hard to understand.
You are the guy in this matter, I guess.
But this article is showing there differances between OS version ( MAPISendMailHelper / MAPISendMailW ) and also seems a solution in ANSI.
How about UNICODE ? Or this will be not concerned case for our last HMG version ?
So many questions... I'm really lost in this.
Will be wonderful to implement in HMG but we have to be sure how and what will be done in order to avoid any run time errors.
Most of cases, users does not know when his configuration is ready or not, configured or not to send emails by third engine system. This is my concern...
Seems very interesting what you said, but for me this is hard to understand.
You are the guy in this matter, I guess.
But this article is showing there differances between OS version ( MAPISendMailHelper / MAPISendMailW ) and also seems a solution in ANSI.
How about UNICODE ? Or this will be not concerned case for our last HMG version ?
So many questions... I'm really lost in this.
Will be wonderful to implement in HMG but we have to be sure how and what will be done in order to avoid any run time errors.
Most of cases, users does not know when his configuration is ready or not, configured or not to send emails by third engine system. This is my concern...
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- danielmaximiliano
- Posts: 2614
- Joined: Fri Apr 09, 2010 4:53 pm
- Location: Argentina
- Contact:
Re: Print Preview - Button Send mail
Pablo _
MAPISendMail() does not support UTF-8, only Ansi. If you need to send Unicode data, you have to use MAPISendMailHelper() on Windows 7 and earlier, or MAPISendMailW() on Windows 8 and later. This is clearly stated in the MAPISendMail() documentation.
MAPISendMail() does not support UTF-8, only Ansi. If you need to send Unicode data, you have to use MAPISendMailHelper() on Windows 7 and earlier, or MAPISendMailW() on Windows 8 and later. This is clearly stated in the MAPISendMail() documentation.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Print Preview - Button Send mail
So there is solution for UNICODE, for (Windows 7 + earlier) and for (Windows 8 + later). Too many ways... more implementations, do not ?danielmaximiliano wrote:MAPISendMail() does not support UTF-8, only Ansi. If you need to send Unicode data, you have to use MAPISendMailHelper() on Windows 7 and earlier, or MAPISendMailW() on Windows 8 and later
Nice one ! (I saw later, in your re-edited message)danielmaximiliano wrote:Can also be used the ShellExecute function as follows:Code: Select all
ShellExecute(NULL, "open", "mailto:opa@gmail.com", "", "", SW_SHOWNORMAL )
I think this is the best way for at moment, I do not know if the ideas will arise and ripen best options (safe and practices).
But note in your code, should it be ShellExecute(Nil, "open"... instead
Thanks Daniel,
But please, let's all keeping on... in this idea.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein