- This topic has 6 replies, 2 voices, and was last updated 5 years, 3 months ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › rename pdf attachments
It is possible to change the name of the automatically generated pdf attachments?
e.g. from
5d23b2c208d61_e7d92bf272gh3c561b0054bdba4b12b2-ticket.pdf
to
myownname-5d23b2c208d61_e7d92bf272gh3c561b0054bdba4b12b2-ticket.pdf
Thanks for your help.
Sorry, but that is not possible. The ticket PDF has a random name for security reasons.
OK thanks for reply, but I don’t want to touch the random name. Just add a own text at the beginning of the label.
New input-field in the EME (PDF) option would be perfect.
$target_file=$targetPath.'/'.$template['properties']['pdf_label'].'-'.$rand_id.'-ticket.pdf';
Or just replace “ticket” with the own label.
$target_file=$targetPath.'/'.$rand_id.'-'.$template['properties']['pdf_label'].'.pdf';
So the name of the attachment looks much more serious to the recipient of the e-mail. 🙂
Regards
It would still contain the random id, so to the enduser it would still look the same.
But: if you’re not using “wp mail” as mail sending method, but “phpmailer” or “smtp”, I could simply change the name of the attachment to “ticket.pdf”, sounds better?
Yes sounds better, but the radom-id isn’t the problem. Maybe even useful to distinguish the attachments. (if the enduser makes a second booking.)
Maybe it makes sense to swap “ticket” and “id”: ticket-randomid.pdf
It looks much better for the enduser.
Regards
P.S. I use the phpmailer.
The next version will have “ticket-” at the beginning (also “member-” for membercards).
Perfect!