I have solved this too but now on email attachment images are missing

Continuing the discussion from Wkhtmltopdf failing: