Title: raymc's Replies | WordPress.org

---

# raymc

  [  ](https://wordpress.org/support/users/raymc/)

 *   [Profile](https://wordpress.org/support/users/raymc/)
 *   [Topics Started](https://wordpress.org/support/users/raymc/topics/)
 *   [Replies Created](https://wordpress.org/support/users/raymc/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/raymc/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/raymc/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/raymc/engagements/)
 *   [Favorites](https://wordpress.org/support/users/raymc/favorites/)

 Search replies:

## Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Quiz and Survey Master (QSM) – Quiz Maker & Survey Maker] No Time To Complete](https://wordpress.org/support/topic/no-time-to-complete/)
 *  [raymc](https://wordpress.org/support/users/raymc/)
 * (@raymc)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/no-time-to-complete/#post-14952490)
 * Actually, I’m having the same issue. Since September 22nd, the time to complete
   for all all quizzes reads 0. Plugin is always fully up to date. Our last submissions
   were oct 6th, and the time still reads 0.
 * [https://snipboard.io/CoRW2b.jpg](https://snipboard.io/CoRW2b.jpg)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App] Page Not found Error on Redirect during Authorization Process](https://wordpress.org/support/topic/page-not-found-error-on-redirect-during-authorization-process/)
 *  Thread Starter [raymc](https://wordpress.org/support/users/raymc/)
 * (@raymc)
 * [5 years ago](https://wordpress.org/support/topic/page-not-found-error-on-redirect-during-authorization-process/#post-14853039)
 * Okay, I believe I have resolved the issue!
 * For anyone else in the future that has this same problem, where you get a 404
   on the redirect after the final step to authorize the plugin, in this instance,
   it was related to ModSecurity. Go into cpanel, or whatever your host systems 
   use to administer itself, and temporarily disable MobSecurity while you complete
   the authorization process. Then, after the authorization completes successfully,
   and the test emails come through, just turn ModSecurity back on.
 * I hope this helps someone!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin] Get a Page not found (404) error when redirected after final authorization](https://wordpress.org/support/topic/get-a-page-not-found-404-error-when-redirected-after-final-authorization/)
 *  Thread Starter [raymc](https://wordpress.org/support/users/raymc/)
 * (@raymc)
 * [5 years ago](https://wordpress.org/support/topic/get-a-page-not-found-404-error-when-redirected-after-final-authorization/#post-14853035)
 * Okay, I believe I have resolved the issue!
 * For anyone else in the future that has this same problem, where you get a 404
   on the redirect after the final step to authorize the plugin, in this instance,
   it was related to ModSecurity. Go into cpanel, or whatever your host systems 
   use to administer itself, and temporarily disable MobSecurity while you complete
   the authorization process. Then, after the authorization completes successfully,
   and the test emails come through, just turn ModSecurity back on.
 * I hope this helps someone!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cart PDF for WooCommerce] Contact Information in PDF footer?](https://wordpress.org/support/topic/contact-information-in-pdf-footer/)
 *  Thread Starter [raymc](https://wordpress.org/support/users/raymc/)
 * (@raymc)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/contact-information-in-pdf-footer/#post-14066716)
 * THANKS, AND SENT!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cart PDF for WooCommerce] Contact Information in PDF footer?](https://wordpress.org/support/topic/contact-information-in-pdf-footer/)
 *  Thread Starter [raymc](https://wordpress.org/support/users/raymc/)
 * (@raymc)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/contact-information-in-pdf-footer/#post-14066648)
 * Thanks for the updates, however, now there appear to be a conflict with another
   plugin that I use for gravity forms, called gravity pdf. I didn’t realize until
   just now. Is there way to fix this, here is the error:
 * Fatal error: Uncaught Mpdf\MpdfException: Cannot find TTF TrueType font file “
   DejaVuSans.ttf” in configured font directories. in /home/regencyinteracti/ladybug.
   regencyinteractive.net/wp-content/plugins/gravity-forms-pdf-extended/vendor/mpdf/
   mpdf/src/Fonts/FontFileFinder.php:33 Stack trace: #0 /home/regencyinteracti/ladybug.
   regencyinteractive.net/wp-content/plugins/gravity-forms-pdf-extended/vendor/mpdf/
   mpdf/src/Mpdf.php(3861): Mpdf\Fonts\FontFileFinder->findFontFile(‘DejaVuSans.
   ttf’) #1 /home/regencyinteracti/ladybug.regencyinteractive.net/wp-content/plugins/
   gravity-forms-pdf-extended/vendor/mpdf/mpdf/src/Mpdf.php(4154): Mpdf\Mpdf->AddFont(‘
   dejavusans’, ”) #2 /home/regencyinteracti/ladybug.regencyinteractive.net/wp-content/
   plugins/gravity-forms-pdf-extended/vendor/mpdf/mpdf/src/Mpdf.php(10875): Mpdf\
   Mpdf->SetFont(‘dejavusans’) #3 /home/regencyinteracti/ladybug.regencyinteractive.
   net/wp-content/plugins/gravity-forms-pdf-extended/vendor/mpdf/mpdf/src/Mpdf.php(
   1483): Mpdf\Mpdf->SetDefaultFont(‘dejavusans’) #4 /home/regencyi in **/home/regencyinteracti/
   ladybug.regencyinteractive.net/wp-content/plugins/gravity-forms-pdf-extended/
   vendor/mpdf/mpdf/src/Fonts/FontFileFinder.php on line 33**
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cart PDF for WooCommerce] Contact Information in PDF footer?](https://wordpress.org/support/topic/contact-information-in-pdf-footer/)
 *  Thread Starter [raymc](https://wordpress.org/support/users/raymc/)
 * (@raymc)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/contact-information-in-pdf-footer/#post-13974003)
 * YES, thank you, I have it working now. You’ve been very gracious in your help!
 * However, is there a means to collect the users contact information and send that
   as well? Something simple, like name, email, phone and company? I think someone
   else had asked this question also, a couple of months ago.
 * Thanks again!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cart PDF for WooCommerce] Contact Information in PDF footer?](https://wordpress.org/support/topic/contact-information-in-pdf-footer/)
 *  Thread Starter [raymc](https://wordpress.org/support/users/raymc/)
 * (@raymc)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/contact-information-in-pdf-footer/#post-13968836)
 * I apologize for this code, it’s embarrassingly bad. Again, I’m NOT a programmer!
 * It “partially” works. If I include both the add_action, and the do_action in 
   functions.php, it will at least send an e-mail, but it doesn’t have the attachment.
   It’s just a plain email with the message body specified below. Where and how 
   do I trigger it properly and by what means can I attach the generated pdf.
 * // START Email Pdf code – this is in functions.php, but should it be?
 * add_action(‘wc_cart_pdf_output’, ‘my_pdf_mail_function’, 10, 1);
    function my_pdf_mail_function(
   $mpdf) { $to = ‘myemail@someaddress.com’; $subject = ‘Test Email’; $body = ‘Testing
   out sending this’; $headers = array(‘Content-Type: text/html; charset=UTF-8′,’
   From: [support@someaddress.com](https://wordpress.org/support/users/raymc/replies/support@someaddress.com?output_format=md)’);
   $attachments = $mpdf; wp_mail( $to, $subject, $body, $headers, $attachments );}
 * // END Email Pdf code
 * // Where does this go?
    do_action( ‘wc_cart_pdf_output’, $mpdf );
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cart PDF for WooCommerce] Contact Information in PDF footer?](https://wordpress.org/support/topic/contact-information-in-pdf-footer/)
 *  Thread Starter [raymc](https://wordpress.org/support/users/raymc/)
 * (@raymc)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/contact-information-in-pdf-footer/#post-13962789)
 * Also, is there a means to display what product options were selected for products
   in the cart? In my instance, I’m using the Advanced Product Fields plugin that
   allows me to create custom fields for each product, from which users can select
   available options. So, as an example, you might have a “Color” option, a “Size”
   option and a “material” option, and each option choice has a different cost added.
   So, how would I include these option in the pdf?
 * I don’t mean to be a nuisance, I just trying to find out what options I have 
   available to achieve a solution I’m looking for.
 * UPDATE: I think I’ve figured this part out. There was an option in Advanced Product
   Fields to enable selected options to be shown in cart, and this plugin pulled
   in those options into the pdf!
    -  This reply was modified 5 years, 7 months ago by [raymc](https://wordpress.org/support/users/raymc/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cart PDF for WooCommerce] Contact Information in PDF footer?](https://wordpress.org/support/topic/contact-information-in-pdf-footer/)
 *  Thread Starter [raymc](https://wordpress.org/support/users/raymc/)
 * (@raymc)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/contact-information-in-pdf-footer/#post-13962653)
 * Thanks! I believe I figured out the footer, and have that implemented. However,
   I haven’t had much experience with software development. Could someone provide
   an example of using the do_action mentioned above to send an email with the pdf
   to the admin or other specified email?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Quiz and Survey Master (QSM) – Quiz Maker & Survey Maker] Email is not getting sent](https://wordpress.org/support/topic/email-is-not-getting-sent/)
 *  [raymc](https://wordpress.org/support/users/raymc/)
 * (@raymc)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/email-is-not-getting-sent/#post-11327987)
 * I’m Having the same issue. I did all of the tests mentioned above with no effect.
   I tried having it submit to various email address and none of them would receive.
   The server can send emails just fine. Contact form 7 and gravity form work fine.

Viewing 10 replies - 1 through 10 (of 10 total)