• Resolved Webface

    (@webfacedesign)


    Hello,

    I searched the forum for quite a bit but could’t finde a solution.

    I’m trying to attach a pdf file to the confirmation mail (mail(2)) that is stored on my server.

    I used your “Local file attachment” instructions on your website but it doesn’t work.

    In the field below the main message field called “Attachment” I inserted the file path like this (and almost any other way possible but it does not work):

    /wp-content/uploads/2017/05/attachment.pdf

    please help me. What am I doing wrong?

    Greetings
    Jonas

    • This topic was modified 7 years, 4 months ago by Webface.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Webface

    (@webfacedesign)

    Even though I thought I tried every way possible it turns out, I misst to try it like this:

    uploads/2017/05/attachment.pdf

    So it works now!

    SOLUTION:

    1) Follow this: file-uploading-and-attachment

    2) Go to your public_html / wp-content / uploads / wpcf7_uploads folder
    Here, create a .htaccess file, and add/save this:

    # Allow File Attachment From Localhost
    order deny,allow
    deny from all
    allow from 127.0.0.1

    After that, try send you a file to your email.

    @webfacedesign

    • This reply was modified 7 years, 4 months ago by livingflame.

    Hi @webfacedesign
    I have the same problem, I tried your solution, and attachment still doesn’t work.
    Do I have to change something in your instructions for the .htaccess ?
    Thanks

    Thread Starter Webface

    (@webfacedesign)

    Hello @orphen4666

    In my case it works like I described it. You need to start the path with -> uploads <- without forward slash or something else. If it doesn’t work try (guess you tried already) to apply the instructions @livingflame wrote down (thanks by the way!). Otherwise I can’t help you – sorry! Haven’t used .htaccess files before.

    Good luck!

    • This reply was modified 7 years, 4 months ago by Webface.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Attaching local file doesn’t work.’ is closed to new replies.