• Resolved xain786

    (@xain786)


    I was using contact form version 5.1.9 and it was working perfectly fine. After updating it to latest version I am not receiving attachment in emails. Is there any known issue after update? My WordPress version in 6.2.1 and PHP 7.4

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can we see the website in question?

    bea

    (@beatefuchs)

    I have the same problem: everything works fine, but the email attachment is not attached in either the mail to me or the one to the sender, although the message appears that sending worked.

    Yes, I put the file in the “E-mail” tab in both mails with the e-mail tag [file-687] given above in the “File attachments” field.
    There is also a folder wpcf7_uploads on the server – I gave it public write permission (766).
    I have also tried it with a second file and have it displayed in both mails as well (this works – the file name is displayed) and also added both mail tags [file-687][file-173] in the File Attachments field. Nevertheless the mails have no attachment.

    Thanks for any tips that help here!
    (https://swt-services.de/kontakt/)

    Thread Starter xain786

    (@xain786)

    I fixed it by removing wpcf7_ajax_json_echo hook from function file as this is now deprecated.

    bea

    (@beatefuchs)

    Great that you found a solution! 😀
    I searched for the function file on the server and found 4 files with “function” in the name inside the plugin folder, but none contains “wpcf7_ajax_json_echo”. Where exactly do I have to remove the hook?
    Thanks in advance for your help!

    Thread Starter xain786

    (@xain786)

    Did you check the main functions.php file? it should be in theme folder. Also try to disable your plugins one by one and test if the attachment is working.

    bea

    (@beatefuchs)

    Thanks for the quick reply!
    I searched all “function” files in “contact-form-7” folder for “wpcf7_ajax_json_echo” but found nothing.
    I have the “functions.php” file under “contact-form-7 > includes”.
    Even if I search the terms individually, neither “ajax”, nor “json” nor “echo” is found in this file.

    I have a multilanguage site and amazingly the contact form including attachment works on the English page (same plugins and settings). Only on the German one the attachment doesn’t work. I have nevertheless deactivated various plugins testwise, but unfortunately without success. Thanks for the tip anyway!

    Thread Starter xain786

    (@xain786)

    Please check if you have added file reference in attachment section inside your German contact form.

    you should have [file-206] as attachment in German contact form.

    bea

    (@beatefuchs)

    Yes, I have. 😉👍

    andrea3870

    (@andrea3870)

    Hello,

    I’m trying to use the plugin with the function of sending attach but this last one it doesn’t work.

    I receive the mail without the attachment.

    I already checked and I have added the file reference in mail section as attachment.

    Could you help me please ?

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.