• Resolved t.schwarz

    (@tschwarz-1)


    Hi!

    I’m trying to add an attachment file to a donation receipt email programmatically, yet can’t figure out the proper way to do it using your email notification class.

    The send function in “abstract notifications” includes a reference to attachments ($attachments = $this->get_email_attachments();), but it is unclear to me how to add a file through this hook structure. It seems all attachment filters/hooks are looking for files referenced in donation forms: return apply_filters( "give_{$this->config['id']}_get_email_attachments", array(), $this, $form_id );

    Is there a way to use your hook structure to add an attachment file *not* referenced in a donation form to a donation receipt email? I’m not looking to add a link to a file, as is demonstrated in your downloadable file snippet/plugin, but an actual email attachment.

    Thanks for any hint!

    • This topic was modified 4 years, 4 months ago by t.schwarz.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Add attachment to donation receipt email’ is closed to new replies.