Custom Email Notification Issues

Home Forums Quform WordPress Custom Email Notification Issues

This topic is: not resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #30945
    rcarroll1989
    Participant

    I followed the guide on creating a plugin to create custom notification email but the email is always the default notification one. I am not sure where to go from here. I want to do calculations in php and send the values in my notification.

    //quform-custom-code.php
    add_action(‘quform_pre_send_notification_18_1’, function (PHPMailer $mailer, Quform_Notification $notification, Quform_Form $form) {
    ob_start();
    include __DIR__ . ‘/email-content.php’;
    $mailer->Body = ob_get_clean();
    }, 10, 3);

    //email-content.php
    <h2>Submitted form data</h2>
    <p>#1: <?php echo $form->getValueHtml(‘quform_18_4’); ?></p>
    <p>#2: <?php echo $form->getValueHtml(‘quform_18_5’); ?></p>
    <p>#3: <?php echo $form->getValueHtml(‘quform_18_17’); ?></p>

    #30956
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #30971
    rcarroll1989
    Participant

    All the credentials have been sent

    #30978
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2020 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy