I've added webform2pdf to one site recently, and I'm now strugling with sending the resulting PDF through e-mail. After submitting the form I'm presented with following error message:

The e-mail arrives to my mailbox, but the attached PDF is blank, with only one czech word "není" - which can be translated to English as "none".
When I try to open the PDF from the results table, it is possible, but there are no psecial czech characters (ěščřžýáíé) - so it is not usable.
I've used this module on another site, without this problems.

Can you please direct me to some solution?

I'm running D6.22, Webform 3.11, Webform2PDF 2.2, MimeMail 6.x-1.0-beta2 on PHP 5.3.6 server.
If you need additional info, just ask.

Thank you in advance.

Comments

petr illek’s picture

EDIT: "When I try to open the PDF from the results table, it is possible, but there are no psecial czech characters (ěščřžýáíé) - so it is not usable." it's apparently not module problem. I've seen this behaviour on Mac OS, but on Win (Vista) all the characters are correct. It's weird.

The rest of issue is still active.

EDIT2: After some more digging, I've narrowed the problem. There is something wrong between Webform2PDF and MimeMail module. Because as soon as I disabled the MimeMail, everthing just works. But I need the MimeMail module to sending simplenews html e-mails.
So this is not a solution for me. :(

mr.york’s picture

Status: Active » Needs review
StatusFileSize
new4.76 KB

You can try to resolve character encoding problems by changing character type in the template settings.
6.x-2.2 already supports mimemail-6.x-1.0-beta2. Please try this patch, if it resolve this problem.

BBaptiste’s picture

Status: Needs review » Needs work

Hello,
I've the same error. When submitting a Webform have no PDF attached to the mail sent if the Mime Mail module is enabled.
But if the Mime Mail module is disabled, Webform2PDF works !
Patch on #2 doesn't work.

I use : Mime Mail 6.x-1.0-beta2 / Webform 6.x-3.14 / WebForm2PDF 6.x-2.2

BBaptiste’s picture

Status: Needs work » Needs review
StatusFileSize
new4.77 KB

Problem resolved for me, can you try this patch ?

$message['attachments'][] = $a;
$message['params']['attachments'][] = $attachments;

mr.york’s picture

Status: Needs review » Fixed

Thanks, committed to webform2pdf 6.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

bevin’s picture

Thanks. But the patch #4 doesn't work for me. Still no PDF attachement in email.
I am using webform-6x-3.1, mime-6x-1.1, webform2pdf-6x-2.3

Can anybody fix this bug?