How to email any chart using Highcharts?

If I include the exporting.js file in my script, I get options like Print Chart and Image Download.

Is there a way to get an option like Email Chart that opens the preferred email client and attaches the chart to the image?

+5
source share
1 answer

Save the render diagram in a JS variable. Ajax is for phpmailer and send it by email.

Works in gmail safari but not in chrome / mozilla. Also works when opening a workspace in an email.

godaddy

$(document).on("trigger", function() { var chart = $('#print').html(); var email = $('#email').val(); $.post("../client/makereport.php", {print: chart, email: email}); }) 
0
source

All Articles