Events Made Easy Forums How do I … rename pdf attachments

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #60171
    Anonymous
    Inactive

    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.

    #60172
    Franky
    Keymaster

    Sorry, but that is not possible. The ticket PDF has a random name for security reasons.

    #60177
    Anonymous
    Inactive

    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

    #60181
    Franky
    Keymaster

    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?

    #60190
    Anonymous
    Inactive

    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.

    #60199
    Franky
    Keymaster

    The next version will have “ticket-” at the beginning (also “member-” for membercards).

    #60202
    Anonymous
    Inactive

    Perfect!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘How do I …’ is closed to new topics and replies.
Scroll to Top