WordPress send pdf with wp_mail function
Hello to all, welcome to therichpost.com. In this post, I will tell you, Wordpress send pdf with wp_mail function. Here is the working code and you can add this code into your main function or any hook: $attachments = array(WP_CONTENT_DIR .'/uploads/2019/08/your-pdf-fine-name.pdf'); $to = 'user@gmail.com'; $subject = 'WordPress wp_mail'; $message =...
Recent Comments