I have put in $mail->addAttachment();
The problem is, the only time the image gets attached is if I use the tmp version of the upload as:
Code: Select all
$file['tmp_name']
And if I put the image file in the website root, then just use the file name in the addAttachment, that will attach and I can open up that image once I receive the email.
The problem is, for simplicity, I want to attach the file directly from the upload dir, but it is not working. I put in the path from the server home, and I also tried backing out of the website root to go into the storage dir like: "./extensions/storage/upload" but that didn't work.
Any ideas?