1

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

1 Answer 1

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?

I guess this helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.