Home › Forums › Quform WordPress › Send a copy of the email to the form user – Not working
- This topic has 2 replies, 2 voices, and was last updated 7 years ago by
lcp.
- AuthorPosts
- October 30, 2015 at 8:58 am #17286
Digi
ParticipantHi 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);October 30, 2015 at 9:50 am #17287Digi
ParticipantScratch that, seems to be working for other users and not me =( . That is obviously something on my side though. Sorry about that.
November 23, 2018 at 3:51 pm #27833lcp
ParticipantHi 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. - AuthorPosts
- You must be logged in to reply to this topic.
