Oh thats interesting… If it could be an issue with phantomjs, I understand that you guys are looking into snappdf? Id actually prefer a local pdf option. I only went to phantomjs becuase i couldnt get node working.
I see an install guide here:
And I read on this forum theres some variables available to enter in the .env file?
Glad to hear that you solved the issue with PDFs. Yes, we’d be happy if all users are able to run snappdf, but that’s not the case, unfortunately. Some shared hosting providers, don’t provide all the necessary requirements for headless Chromium to work. That’s why PhantomCloud is there as an option.
By the way, you can remove experimental pdf engine flag from your .env & only leave phantom pdf generation as false, if you’re running the latest version.
I will check what’s wrong with sending e-mails when having PDF attached & let you know here.
@david
Just FYI this is still an issue for me as of 5.0.52-C39. Im trying it with phantomjs this time again but also tried snappdf 1.2 through 1.5
When i turn on the attach pdf option i get one email that the invoice was sent, but the client never receives an email. As soon as i turn off ‘attach pdf’ option emails go to the client again.
With ‘attach pdf’ turned off system_logs table data shows 2 entries:
“Entity PDF generated sucessfully => 0004”
“Entity PDF generated sucessfully => 0004”
And 2 emails are sent, one informing me invoice was sent and one to customer
With ‘attach pdf’ turned on system_logs table data shows only 1 entry:
“Entity PDF generated sucessfully => 0006”
until i run
sudo php artisan queue:work
Then the second entry appears, but followed by an error: "Unable to open file for reading [https:\/\/FQDNofmyserver\/storage\/0V1qDzTeunL8DhX0wHX9Z3fiiMEp6hRD9fxIYoWorSgNzeo9D3LXu9j8jS9ilmmd\/eU8PJjakrDqycTSxtpeH6dYmadXMSMmwqDnAeEXP\/invoices\/0007.pdf]"
1 email is sent to me saying unable to send invoice
If i go to the URL manually it loads the PDF but i get a self signed certificate error. Maybe this could be the issue with attaching the PDF. Is I.N trying to attach that PDF into the e-mail from the full https:// URL instead of pulling it directly from storage?