How to send whole table by email ?
How to send whole table by email ?
shamanvirtuel
Posts: 1Questions: 0Answers: 0
hello,
Thanks for this great plugin !
I'm dev'ing an intranet application using datatables, and i need to know if there's a way to send the whole table by email.
I saw the datatools PDF function , but what i need is to build the pdf and then attach it to an email .
is it possible ?
if not, any hint in order to achieve this goal ?
Thanks a lot by advance
shaman
PS: forgive my English, I'm french.
Thanks for this great plugin !
I'm dev'ing an intranet application using datatables, and i need to know if there's a way to send the whole table by email.
I saw the datatools PDF function , but what i need is to build the pdf and then attach it to an email .
is it possible ?
if not, any hint in order to achieve this goal ?
Thanks a lot by advance
shaman
PS: forgive my English, I'm french.
This discussion has been closed.
Replies
I am not sure in what language you are coding, but I will guess php.
You can simply create a pdf and attach it to a mail.
In php you can send a mail and attachmants.
Just have a look how the pdf is rendered - save it, and go to a php file to send a mail with attachments.
Good luck!
big-deal
I would suggest that if you want to e-mail a PDF as an attachment, you'll need to look at generated a PDF on the server-side and e-mailing it out from there.
Allan
The pdf is done in the client side - but I believe you can do a javascript function that will do the required things to make the pdf and then will do an ajax call or something do send it...
Just like uploading the file to the server (using ajax) - and then mailing in using the built in php function.
I believe that something of that sort can be accomplished.... but I haven't tryed it myself yet...
big-deal
Allan