Autoreply to send a file attachement

Home Forums Quform WordPress Autoreply to send a file attachement

This topic is: resolved
Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #2660
    sthe2002
    Participant

    When 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?

    #2687
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #2951
    sthe2002
    Participant

    I 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);

    #2969
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #2971
    sthe2002
    Participant

    That change was made and still no difference. Is there something additional in the autoreply section of the web interface that needs to be configured?

    #2972
    sthe2002
    Participant

    I am using the Genesis framework with the Agentpress child theme if that information helps.

    #2975
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #6555
    paul
    Participant

    Did you get a fix for this as I am having the same problem.

    Regards
    P

    #6569
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #6580
    paul
    Participant

    all is working now, thanks.

    #6724
    kimantis
    Participant

    Hey guys, I am wondering if how we could create an html file instead of a pdf?

    #6734
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #6746
    kimantis
    Participant

    Would 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 🙂

    #6761
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #6801
    kimantis
    Participant

    Hi 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 ? 🙂

Viewing 15 posts - 1 through 15 (of 19 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