PDF attached to mail not able to open

Good day everyone,

when i send PDF attachements directly with the mail function from invoice ninja they cannot be opened, but when i manually download the PDF it works fine, live preview also works fine.

This is on self hosted invoice ninja white label hosted on ubuntu 18.04

App Version: v4.5.17
Server OS: Linux 4.15.0-76-generic
PHP Version: 7.2.27-3+ubuntu18.04.1+deb.sury.org+1
MySQL Version: 10.1.44-MariaDB-0ubuntu0.18.04.1

any help is greatly appreaciated :slight_smile:

The info here may help:

https://invoice-ninja.readthedocs.io/en/latest/configure.html#phantomjs

hi Hillel,

i made a phantomjs cloud key and added it to the .env, but still not working. Its making 5kb PDF’s

You may have better luck running phatomjs locally.

I also suggest working through the items in the troubleshooting list.

Hillel, shouldn’t the cloud option be a working solution in the first place?

Yes, however we’ve found PhantomJS to be unreliable. In the next version we’re switching to headless Chrome.