문제

I have a page with dynamic content and would like the user who creates the report to send the result as an email attachment (pdf & excel). How would be the best way to do this ?

Thanks

도움이 되었습니까?

해결책

  • For email: PHPMailer()
  • For excel: PHPExcel()
  • For PDF: domPDF or prince

Just use google to find each of these. This is a pretty complicating process, but if you do it step by step then you should be able to figure it out. Prince is not free, but looks much better than domPDF.

  1. Create excel version of report on server.
  2. Create PDF version of report on server.
  3. Email both files with reports attached.
  4. Delete files from the server.
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top