Send a copy of the email to the form user – Not working

Home Forums Quform WordPress Send a copy of the email to the form user – Not working

This topic is: resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17286
    Digi
    Participant

    Hi there, the code below used to work and does not anymore. Any assistance would be greatly appreciated.

    Thanks

    function my_send_form_user_copy($mailer, $form, $attachments)
    {
    $email = $form->getValue(‘iphorm_2_3’);
    if ($email) {
    $mailer->AddAddress($email);
    $mailer->SingleTo = true; // Hide the recipient email addresses from each other
    }

    return $mailer;
    }
    add_filter(‘iphorm_pre_send_notification_email_2’, ‘my_send_form_user_copy’, 10, 3);

    #17287
    Digi
    Participant

    Scratch that, seems to be working for other users and not me =( . That is obviously something on my side though. Sorry about that.

    #27833
    lcp
    Participant

    Hi I can seem to get this working. What did you do to fix it? Please see attached screen shots:

    <?php

    /*
    * Plugin Name: Quform Custom Code
    * Description: Custom code for Quform.
    * Version: 1.0
    */

    // Paste in your custom code below

    function my_send_form_user_copy($mailer, $form, $attachments)
    {
    $email = $form->getValue(‘1_102’);
    if ($email) {
    $mailer->AddAddress($email);
    $mailer->SingleTo = true; // Hide the recipient email addresses from each other
    }

    return $mailer;
    }
    add_filter(‘iphorm_pre_send_notification_email_1’, ‘my_send_form_user_copy’, 10, 3);

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