• Resolved zacsmith

    (@zacsmith)


    My CF7 form is working perfectly, sending all fields in the email, including the name of the uploaded file.

    However, there is no attachment to the email.

    I’ve clicked around and looked at the raw code of the email, and no attachment is to be found.

    Where can I look next to be able to actually get the file?

    Thanks!

    zack

    https://wordpress.org/plugins/contact-form-7/

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

    (@takayukister)

    Thread Starter zacsmith

    (@zacsmith)

    Thanks your reply. I re-read the page you recommended (again!) and went looking for the setting to change the upload location.

    The “Settings > Miscellaneous” link has been removed from WordPress, and in “Media” there is not option to specify the upload folder.

    I found a reference on the web which recommends adding this line to wp-config.sys:

    define(‘UPLOADS’, ‘wp-content/uploads/wpcf7_uploads/’);

    but with your own file path, which I tried. A test upload through WP worked, but all my thumbnails previously in the media gallery disappeared from my site. I did not test past that point. I don’t want that to happen. I’d be happy if I could just add the files to my media library, or place them in the default images folder.

    Clicking the “store by month…” check box made no difference, and is really not how I want to organize media.

    So all I need is for the plugin to send me the file attachment. Any other suggestions are appreciated.

    zack

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Again. See File Uploading and Attachment.

    Setting up file attachments with a mail

    To attach the uploaded files to the mail, put mail tags corresponding to form tags for file uploading fields into ‘File attachments’ field as shown below.

    img: https://cacoo.com/diagrams/eQBY3UonRgupSiUV-2E565.png

    In this example, the form tag for the file uploading field is:

    [file your-file filetypes:pdf]

    Therefore, the corresponding mail tag to this is:

    [your-file]

    Note that what you’re required to put in the ‘File attachments’ field is [your-file], not [file your-file filetypes:pdf].

    If you have multiple files uploaded and want to attach them into an email, simply line them up in the ‘File attachments’ field like this:

    [your-file][your-another-file]

    Put mail-tags into File attachments field. Not Message body field.

    Thread Starter zacsmith

    (@zacsmith)

    OK, after looking at the entire screen, I found the “Mail: section and entered the code correctly. Of course, it worked.

    What was throwing me was that I kepy looking at the “Message Body” section rather than the “Mil”” section to the left.

    Thanks for your help and patience. Either I’ve gotten stupider as i age, or I really need new glasses. Either way, I’m appreciative of your help.

    zack

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘File Upload Not Attached to Email’ is closed to new replies.