• Resolved Lisa

    (@ikbenlisa)


    Hi,

    The plugin is working almost fine: the PDFs are generated and i can view them from within WordPress. The only thing is that the attachment of the PDFs to the emails is not working well.

    For example, i have a PDF file called 293.pdf. Attached to the email are three files:

    293.pdf][mime
    293.pdf][name
    293.pdf][postname

    None of which i can open. I suspect this has something to do with the fact that i don’t save uploads in the standard wp-content directory, but in a directory outside the wordpress directory (a sibling directory, if you understand what i mean).

    Can you look into this issue?

    Thanks!

    https://www.ads-software.com/plugins/woocommerce-pdf-invoices/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Lisa

    (@ikbenlisa)

    Sorry, what PHP file?

    Plugin Author Bas Elbers

    (@baaaaas)

    Woops replied within the wrong thread. You could try to do some debugging on the attach_invoice_to_email function on line 237. I will look into it asap.

    Thread Starter Lisa

    (@ikbenlisa)

    Thanks in advance!
    attach_invoice_to_email seems to return the correct filename…

    Plugin Author Bas Elbers

    (@baaaaas)

    The plugin saves the pdf files to the woocommerce-pdf-invoices/tmp dir. Do the pdf’s get created anyway? Maybe it’s a file permission thing.

    Thread Starter Lisa

    (@ikbenlisa)

    Yes, the PDF files are being created, and attach_invoice_to_email returns the correct URL…

    Thread Starter Lisa

    (@ikbenlisa)

    Alright, I have new information: when i disable the Sendgrid plugin, it works fine! So there’s something wrong with that combination…

    Edit: I now see that more people are having this issue with Sendgrid, so there must be something wrong over there and i won’t bother you with this anymore ?? Thanks anyway!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Email attachment not working correctly’ is closed to new replies.