Quform Custom Code plugin not working

Home Forums Quform WordPress Quform Custom Code plugin not working

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Ally 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #21107


    I have created a custom plugin (below), saved it as a quform-custom-code.php, created a folder named the same in my plugins directory and uploaded the file. The plugin does not show up and I can not activate in the wordpress plugins page.

     * Plugin Name: Quform Custom Code
     * Description: Custom code for Quform.
     * Version: 1.0
    // Paste in your custom code below

    function my_send_form_emails($form)
        // Hide these fields

        $mailer = iphorm_new_phpmailer($form);

        // Set subject
        $mailer->Subject = 'New form submission';

        // Set recipient

        // Set "From" address

        include IPHORM_INCLUDES_DIR . '/emails/email-html.php';
        $emailHTML = ob_get_clean();

        include IPHORM_INCLUDES_DIR . '/emails/email-plain.php';
        $emailPlain = ob_get_clean();

        $mailer->AltBody = $emailPlain;

        try {
            // Send the message
        } catch (Exception $e) {
            if (WP_DEBUG) {
                throw $e;
    add_action('iphorm_post_process_6', 'my_send_form_emails');


    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 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.