Home › Forums › Quform WordPress › Autoreply to send a file attachement
- This topic has 18 replies, 5 voices, and was last updated 11 years ago by
Ally.
- AuthorPosts
- February 5, 2013 at 9:28 pm #2660
sthe2002
ParticipantWhen I have a user submit a form, I would like it to autoreply sending an attachment in the email response. Can this be done without extensive coding?
February 6, 2013 at 3:09 pm #2687Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 18, 2013 at 7:01 pm #2951sthe2002
ParticipantI added the code to the functions file under the child wordpress theme. The form id is 2. Is there anything I have missed? This code is currently not working or sending the attachment file as expected.
function mytheme_attach_autoreply_file(PHPMailer $mailer, $form, $attachments)
{
$mailer->AddAttachment(ABSPATH . ‘/html/wp-content/uploads/2013/02/document.pdf’, ‘document.pdf’, ‘base64’, ‘application/pdf’);return $mailer;
}
add_filter(‘iphorm_pre_send_autoreply_2’, ‘mytheme_attach_autoreply_file’, 10, 3);February 19, 2013 at 10:18 am #2969Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 19, 2013 at 3:12 pm #2971sthe2002
ParticipantThat change was made and still no difference. Is there something additional in the autoreply section of the web interface that needs to be configured?
February 19, 2013 at 3:14 pm #2972sthe2002
ParticipantI am using the Genesis framework with the Agentpress child theme if that information helps.
February 19, 2013 at 4:55 pm #2975Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
September 24, 2013 at 6:47 pm #6555paul
ParticipantDid you get a fix for this as I am having the same problem.
Regards
PSeptember 25, 2013 at 10:08 am #6569Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
September 25, 2013 at 12:49 pm #6580paul
Participantall is working now, thanks.
October 2, 2013 at 3:23 pm #6724kimantis
ParticipantHey guys, I am wondering if how we could create an html file instead of a pdf?
October 3, 2013 at 10:02 am #6734Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
October 4, 2013 at 7:30 pm #6746kimantis
ParticipantWould it be possible to attach the html to the email with the values of the form in it? I would pay you to do this Ally
October 5, 2013 at 2:34 pm #6761Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
October 8, 2013 at 2:19 am #6801kimantis
ParticipantHi Ally, it is working great!
My only issue is I wanted to include the current html in the autoreply? is that complicated to add to this? and I would remove the subject and the field name, only the submitted information ?
- AuthorPosts
- You must be logged in to reply to this topic.