Hi there,
i have insert this piece of code in my functions.php of my theme:
But the PDF file isn't send with the user notification.. How come??
Hi there,
i have insert this piece of code in my functions.php of my theme:
But the PDF file isn't send with the user notification.. How come??
Can you dump the value of the $attachments array before you return it, to see what it contains? If it does not look correct, work your way backward through the code to see which part is not returning the expected value.
Also, be sure the file exists and has the proper permissions in the location you are trying to load it from as an email attachment.