Page 1 of 1

Button to send data by e-mail Client

Posted: 2021-04-05 15:55
by federico
I'm not able to find it so I create a new post

Is it possible to send data opening the e-mail client? For example outlook?
I created a button followign the Udemy course. Now I would like to say to that button, to open Outlook and attaching some data...
it could be compile data as To or Subject, or the text part copying from the records of the table. :?
Can you help me?

Thanks
Federico

Re: Button to send data by e-mail Client

Posted: 2021-04-05 19:19
by jsetzer
Hyperlinks using the mailto-protocol can be used for this. There are standard parameters. All parameters have to be encoded correctly. Have a look at the following generator which should be helpful.

https://mailtolinkgenerator.com/

Depending on the user's environment the installed default mail client should open when clicking such a mailto-link, if installed. If this is Microsoft Outlook on you user's pc, this should show up with a new message dialog showing prefilled data. Should work with other mail clients, too, for example Thunderbird, if installed and configured correctly.

For technical reasons there are some length limits for the paramerers. Consider sending a link to a page instead of sending too much data.

As an alternative to opening up the user's mail client, consider sending the mail serversidely using sendmail function. Then you are free to send any plaintext and/or HTML-formatted mail, even attachments, to a given recipient. There are pros and cons.

Re: Button to send data by e-mail Client

Posted: 2021-04-07 13:13
by federico
thanks for the suggestion
The link problem is that cannot be used many times from many Companies because of the security reasons. For my personal experiences some years ago I used to send link of price list and catalogues, but most of the customers told me that they couldn't open the file for security reasons, so I returned to use the old method to send that attached file.