1

我正在尝试使用 phpmailer 发送邮件,所以我返回邮件正文的函数如下:

function get_include_contents(){
// some code
 include "graph.php"
  //some code<br/>
}

“graph.php”文件实际上是在生成一个表格和图表(我正在使用 highchart.js),

当我运行我的文件来发送邮件时,我只得到表(在 php 中生成)。我没有得到图表(由 javascript 生成)。

我应该如何在邮件中显示图表?

4

1 回答 1

0

Imho you're best shot is to make a pdf out of the graph.php page and use that pdf as an attachment in your email. This process has been discussed here Print a webpage to pdf document using php

于 2013-07-19T07:10:53.920 回答