Home › Forums › Quform WordPress › Custom Email Notification Issues
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>
You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
All the credentials have been sent