Answers.Body: <p>I didn't manage to test this but Receipt.pdf is been hard-coded in CiviCRM Core and if you need to change the name of the attachment then you need to look into the below file and you need to override the file to achieve your change </p>
  
  <p>.../wp-content/plugins/civicrm/civicrm/CRM/Contribute/Form/Contribution/confirm.php</p>
  
  <p>'PDFFilename' => 'receipt.pdf' - Line 1274</p>
  
  <p>Also look into the link before overriding the file </p>
  
  <p><a href="https://civicrm.stackexchange.com/questions/1946/can-i-override-core-classes-or-php-files-with-custom-versions">Can I override core classes or PHP files with custom versions?</a></p>
  
  <p>I guess this helps!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-29T13:44:54.270Z
Answers.LastActivityDate: 2016-03-29T13:44:54.270Z
Answers.LastEditDate: 2017-04-13T12:53:13.207Z
Answers.UserDisplayName: Ramesh - ARTECH Consultancy
Body: <p>My client would like to change the attachment name of the pdf they receive when a contribution is made.</p>
  
  <p>This is now receipt.pdf (which is the case for a lot of emails).</p>
  
  <p>Can this be changed?</p>
  
  <p>I'm using Wordpress</p>
  
Tags: <wordpress><attachments>
Title: Contribution Email Attachment Name
ThreadText: # Contribution Email Attachment Name
  
  (Asked by: username_0 on 2016-03-29)
  
  My client would like to change the attachment name of the pdf they receive when a contribution is made.
  
  This is now receipt.pdf (which is the case for a lot of emails).
  
  Can this be changed?
  
  I'm using Wordpress
  
  **Tags:** wordpress, attachments
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-03-29. Score: 3
  
  I didn't manage to test this but Receipt.pdf is been hard-coded in CiviCRM Core and if you need to change the name of the attachment then you need to look into the below file and you need to override the file to achieve your change
  
  .../wp-content/plugins/civicrm/civicrm/CRM/Contribute/Form/Contribution/confirm.php
  
  'PDFFilename' => 'receipt.pdf' - Line 1274
  
  Also look into the link before overriding the file
  
  [Can I override core classes or PHP files with custom versions?](https://civicrm.stackexchange.com/questions/1946/can-i-override-core-classes-or-php-files-with-custom-versions)
  
  I guess this helps!
  
  
  ---
  
  