Page 1 of 1

forward print view with email

Posted: 2016-05-21 18:53
by patsd102
Can I ask, has anyone ever emailed the contents of the print page.
I would like to forward the information on it via an email,

Thanks

Re: forward print view with email

Posted: 2016-05-21 20:47
by AhmedBR
Go to the example at this link:
The following example sends a notification email to an employee when a user submits a new record. The email contains the record data.
https://bigprof.com/appgini/help/advanc ... ific-hooks

Use the same code at the footer or header HOOK of the table you want in case 'print-detailview'
I believe this should do it.

have a nice day
Ahmed

Re: forward print view with email

Posted: 2016-05-22 09:01
by patsd102
Thanks for the reply.
Its not what I want,

I want a box where I can insert an email address to send to.

Re: forward print view with email

Posted: 2016-05-22 15:36
by AhmedBR
Add a field in the detail view and insert the email you want, make it as a variable to pass to the hook function.

Re: forward print view with email

Posted: 2016-05-23 03:52
by grimblefritz
There are a number of browser extensions that will do this. I use one for Chrome called Explain & Send Screenshots. Awesome Screenshot also works well.

There's also a print driver (for Windows) called Print2Email. Not free, but there's a trial version. And there's probably more than just this one.

Re: forward print view with email

Posted: 2016-05-24 17:33
by patsd102
HI AhmedBR

Could you give me an example of the variable, and where to place it,

Thank you

Pat

Re: forward print view with email

Posted: 2016-05-26 12:37
by AhmedBR
You can do something like this:
Let`s say the field name you create is eMail

Change the code from this:

Code: Select all

// mail recipient
"[email protected]"
To This:

Code: Select all

// mail recipient
"{$data['eMail']}"