Answers.Body: <p>It seems to be hardcoded (<a href="https://github.com/civicrm/civicrm-core/blob/master/CRM/Report/Form.php#L3405" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/blob/master/CRM/Report/Form.php#L3405</a>), but you could use <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterMailParams/" rel="nofollow noreferrer">hook_civicrm_alterMailParams</a> and do something like (untested - you might have to adjust the regex):</p>
  
  <p><code>
  if ($params['groupName'] == 'Report Email Sender') {
    $params['html'] = preg_replace('/^Report URL.*$/', '', $params['html']);
  }
  </code></p>
  
  <p>Another option which is maybe simpler is just completely replace the html in the hook, if you don't really need the other text either:</p>
  
  <p><code>
  if ($params['groupName'] == 'Report Email Sender') {
    $params['html'] = 'Insert your own html';
  }
  </code></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-05-07T15:53:21.177Z
Answers.LastActivityDate: 2019-05-07T15:53:21.177Z
Answers.UserDisplayName: Demerit
Body: <p>I would like to remove the link from a report email header. Is it easy to achieve? thanks</p>
  
  <p><a href="https://i.sstatic.net/D9yvQ.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/D9yvQ.png" alt="enter image description here"></a></p>
  
Tags: <email><civireport><reports>
Title: How to remove "Report URL" from emailed PDF reports header?
ThreadText: # How to remove "Report URL" from emailed PDF reports header?
  
  (Asked by: username_0 on 2019-05-07)
  
  I would like to remove the link from a report email header. Is it easy to achieve? thanks
  
  [![enter image description here](https://i.sstatic.net/D9yvQ.png)](https://i.sstatic.net/D9yvQ.png)
  
  **Tags:** email, civireport, reports
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-05-07. Score: 2
  
  It seems to be hardcoded (<https://github.com/civicrm/civicrm-core/blob/master/CRM/Report/Form.php#L3405>), but you could use [hook\_civicrm\_alterMailParams](https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterMailParams/) and do something like (untested - you might have to adjust the regex):
  
  `if ($params['groupName'] == 'Report Email Sender') {
  $params['html'] = preg_replace('/^Report URL.*$/', '', $params['html']);
  }`
  
  Another option which is maybe simpler is just completely replace the html in the hook, if you don't really need the other text either:
  
  `if ($params['groupName'] == 'Report Email Sender') {
  $params['html'] = 'Insert your own html';
  }`
  
  
  ---
  
  