Answers.Body: <p>Yes, you can send a report as printer-friendly HTML, in the body of a Scheduled Job e-mail, using mail_report. </p>
  
  <p>Go to Administer -> System Settings -> Scheduled Jobs. Edit the Scheduled Job parameters to add format=print, which overrides the default option, which is to send the report as a PDF file attached to the e-mail. </p>
  
  <p>See <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs" rel="nofollow">here</a> for more information about managing Scheduled Jobs, including parameter options.  </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-18T18:15:15.757Z
Answers.Text: That's great - thanks for circling back on this to SE
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-18T16:44:37.467Z
Answers.LastActivityDate: 2016-07-18T16:44:37.467Z
Answers.UserDisplayName: Joe McLaughlin
Body: <p>We're on CiviCRM 4.6.19 and Drupal 7.50 . </p>
  
  <p>I'm having problems with six daily Scheduled Jobs to send reports using Job and mail_report and instanceId=x. Three of the reports get sent successfully, and three do not. There's an error reported with DOMPDF when executing the three failures manually as well. It's not an error with the e-mails being blocked as spam. </p>
  
  <p>So: <strong>Is there an option to send a report as HTML in an e-mail as a Scheduled Job, rather than as an attached PDF file? Is there a parameter for mail_report to send as HTML?</strong></p>
  
  <p>Or: <strong>Is there another API option to do this besides mail_report?</strong>  </p>
  
  <p>Thanks!</p>
  
Tags: <civimail><civireport><scheduled-job>
Title: Can a Scheduled Job using mail_report send Reports as HTML in the e-mail body, rather than as a PDF attached to the e-mail?
ThreadText: # Can a Scheduled Job using mail_report send Reports as HTML in the e-mail body, rather than as a PDF attached to the e-mail?
  
  (Asked by: username_0 on 2016-07-09)
  
  We're on CiviCRM 4.6.19 and Drupal 7.50 .
  
  I'm having problems with six daily Scheduled Jobs to send reports using Job and mail\_report and instanceId=x. Three of the reports get sent successfully, and three do not. There's an error reported with DOMPDF when executing the three failures manually as well. It's not an error with the e-mails being blocked as spam.
  
  So: **Is there an option to send a report as HTML in an e-mail as a Scheduled Job, rather than as an attached PDF file? Is there a parameter for mail\_report to send as HTML?**
  
  Or: **Is there another API option to do this besides mail\_report?**
  
  Thanks!
  
  **Tags:** civimail, civireport, scheduled-job
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-07-18. Score: 2 | Accepted answer
  
  Yes, you can send a report as printer-friendly HTML, in the body of a Scheduled Job e-mail, using mail\_report.
  
  Go to Administer -> System Settings -> Scheduled Jobs. Edit the Scheduled Job parameters to add format=print, which overrides the default option, which is to send the report as a PDF file attached to the e-mail.
  
  See [here](https://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs) for more information about managing Scheduled Jobs, including parameter options.
  
  > **Comments:**
  > **username_1**: That's great - thanks for circling back on this to SE  
  
  ---
  
  