Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Autoreply to send a file attachement #2972
    sthe2002
    Participant

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

    in reply to: Autoreply to send a file attachement #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?

    in reply to: Autoreply to send a file attachement #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);

Viewing 3 posts - 1 through 3 (of 3 total)
Be inspired. © 2025 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy