• Resolved folettiwebdesigner

    (@folettiwebdesigner)


    Hi, I’ve tried to add an attachment to response email with the following code:

    function filter_ninja_forms_action_email_attachments( $attachments, $data, $settings ) { 
             
             if ($data['form_id'] == 2) {
    
                 $attachments[] = "wp-content/uploads/2017/11/filename.pdf";
                 return $attachments;
             }
             return $attachments; 
         }; 
                  
         // add the filter 
         add_filter( 'ninja_forms_action_email_attachments', 'filter_ninja_forms_action_email_attachments', 10, 3 );
    

    But it isn’t working. Via WP Mail Log I can see the attachment appended to the outgoing email, but I don’t receive it on the destination email address.

    Could you kindly help?

Viewing 1 replies (of 1 total)
  • Plugin Support Curtis

    (@curtisbrownlee)

    Hi,

    I would pose this question within our Developer Slack Channel which you can find below:
    Slack channel: https://developer.ninjaforms.com/slack
    Codex: https://developer.ninjaforms.com/codex/

    The developers of Ninja Forms frequent this channel and would be able to guide you in the right direction.

    Because we only check these forums once per week, we strongly encourage you to reach out to us here with any followup questions in order to get a timely response: https://ninjaforms.com/contact/ There, we offer support free support directly to our Ninja Forms users with significantly more privacy and a faster response time.

Viewing 1 replies (of 1 total)
  • The topic ‘Email Attachments not working’ is closed to new replies.