PHP Snippet to attach PDF-File when sending out an E-Mail

[ad_1]

Hello,

i can’t find the PHP Snippet anymore but it worked this way: When an E-Mail is send through WP Mail Queue, it looks for the Subject and based on that Subject you could attach an PDF or Document. So when an E-Mail is sent from Forminator with the Subject “Subject” i could put it into the PHP Snippet, where then the PDF File is attached from the Media Library (in this Case a PDF with the Terms of Service f.ex.). I **do not** mean Attachments from the Mail/Form itself. Has anyone maybe that PHP Snippet on hand?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer