• Resolved mcneil

    (@mcneil)


    Hello. I was wondering if there was a way to have the form email an attachment.

    Can this be done?

Viewing 12 replies - 1 through 12 (of 12 total)
  • i am looking for the same thing. have you come to a solution?

    Plugin Author hoffcamp

    (@hoffcamp)

    Yes, but its not pretty. You have to use the custom e-mail notifications. You can copy and paste the code from this faq.

    Thread Starter mcneil

    (@mcneil)

    Ok. I was able to get the custom email to work..but how do I get it to recognized the file attachment.

    Plugin Author hoffcamp

    (@hoffcamp)

    What are you trying to send as the attachment?

    Thread Starter mcneil

    (@mcneil)

    I have a form where users fill out basic information and then upload a file that I want emailed to me. I used the sample code and it attached the attachment.htm file, but I wanted it to attached the file that was uploaded through the form.

    Thanks for your help.

    Plugin Author hoffcamp

    (@hoffcamp)

    Okay I misunderstood. Unfortunately the only attachments you can send with the custom e-mails are text / html that you generate based on the submission. The closest to what you want would be if you choose an upload directory and URL for your file upload field. This way the default e-mails will send a link to the uploaded file.

    Plugin Author hoffcamp

    (@hoffcamp)

    If you update to 1.5.24, I added some new codes for the file upload. If you put %wp_uploads_dir% for the directory and %wp_uploads_url% for the URL, the uploads & links will point to whatever directory is set under Settings > Media > File Uploads.

    Thread Starter mcneil

    (@mcneil)

    Cool beans! Thanks!

    Hi.. im also trying to attach a file.. simple .txt or .doc for a cv upload..

    I have set %wp_uploads_dir% for the directory and %wp_uploads_url% for the URL, and i also tried inserting manual urls.. but it doesnt seems to work..

    The email show me the name of the attached file, but not a link.. also i cant see the file on the server via ftp…

    I have the directory wp-contents/upload set on 777, but it doenst seem t upload anything there..

    What could be?

    Thanks a lot..

    Another info: its uploading the files to the plugin directory on the server…

    Plugin Author hoffcamp

    (@hoffcamp)

    What version of the plugin are you using? I don’t know why it would do that. Try ‘%doc_root%/wp-content/uploads’ for the directory, and https://www.whatever.com/wp-content/uploads for the URL, and let me know if that works. Also, check Settings > Media > File Uploads to make sure it points to the right directory.

    Thanks a lot!! its working now…

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Email Notification with attachment’ is closed to new replies.