Since version 2.0.5 it’s possible to use a filter to add attachments to the email that is sent to the subscriber/user. Below an example to illustrate the use of this filter.
add_filter( 'dae_email_attachments', 'my_dae_email_attachments' );
function my_dae_email_attachments() {
// Fill in your attachment ID's
$attachment_ids = array( 8, 18 );
foreach ( $attachment_ids as $attachment_id ) {
if ( $filepath = get_attached_file( $attachment_id ) ) {
$filepaths[] = $filepath;
}
}
if ( empty( $filepaths ) ) {
return array();
}
return $filepaths;
}