Forum Replies Created
- AuthorPosts
sthe2002
ParticipantI am using the Genesis framework with the Agentpress child theme if that information helps.
sthe2002
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?
sthe2002
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);- AuthorPosts