Adding Attachments to Emails

Additional attachments can be added to a Ninja Forms email using the ninja_forms_action_email_attachments filter. This filter passes an array of attachments, a copy of the raw form data, and the settings for the form.

<?php
add_filter( 'ninja_forms_action_email_attachments', function( $attachments, $data, $settings ) {
// Append file path.
$attachments[] = $path_to_file;
return $attachments;
}, 10, 3 );