Thanks for the module, I'm so close to getting this working!

I'm using two different email clients as tests , gmail and rackspace. The problem is that when the email is sent out, I get garbled text in the email that is sent out to the rackspace address. The inbox indicates that there is an attachment but opening the email will show garbled text along with the content of the webform submission.

On gmail, I receive a blank email with an attachment named "noname" with no file extension.

Similar to http://drupal.org/node/1215052, but the solution there did not work for me..

drupal 7.7, fresh install no other contrib modules
webform 3.12
webform2pdf 3.0-rc2; also tried with 3.0-dev, same result
tcpdf is latest, I think (tcpdf site is down) 5.9.113

any suggestions would be appreciated!

-jaspher

Comments

jaspher’s picture

Email body looks like this:

--------------f936975a1075c5f8dcefbedbe799b8a6
Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit

Submitted on Tue, 08/30/2011 - 01:38
Submitted by user: admin
Submitted values are:

Name: test name
email: test@example.com


The results of this submission may be viewed at:
http://webform.xxx.com/?q=node/1/submission/5

--------------f936975a1075c5f8dcefbedbe799b8a6
Content-Type: application/pdf; name="webform_submission-1-5.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="webform_submission-1-5.pdf"

JVBERi0xLjYKNiAwIG9iago8PCAvVHlwZSAvUGFnZSAvUGFyZW50IDEgMCBSIC9MYXN0TW9kaWZp
ZWQgKEQ6MjAxMTA4MzAwMTM4MzgtMDYnMDAnKSAvUmVzb3VyY2VzIDIgMCBSIC9NZWRpYUJveCBb
MC4wMCAwLjAwIDU5NS4yOCA4NDEuODldIC9Dcm9wQm94IFswLjAwIDAuMDAgNTk1LjI4IDg0MS44
OV0gL0JsZWVkQm94IFswLjAwIDAuMDAgNTk1LjI4IDg0MS44OV0gL1RyaW1Cb3ggWzAuMDAgMC4w
MCA1OTUuMjggODQxLjg5XSAvQXJ0Qm94IFswLjAwIDAuMDAgNTk1LjI4IDg0MS44OV0gL0NvbnRl
bnRzIDcgMCBSIC9Sb3RhdGUgMCAvR3JvdXAgPDwgL1R5cGUgL0dyb3VwIC9TIC9UcmFuc3BhcmVu
...

continues on for about 200+ lines

Thanks!

-jaspher

Loikkk’s picture

I've got the same prob. I'm running on the same configuration.

Loikkk’s picture

I don't know how to fix this. It is a real problem

Punk_UnDeaD’s picture

webform2pdf.module
- $message['headers']['Content-Type'] = 'multipart/mixed;\n boundary="' . $trenner . '"';
+ $message['headers']['Content-Type'] = 'multipart/mixed; boundary="' . $trenner . '"';

jaspher’s picture

Thanks Punk_UnDeaD, it works! Loikkk, can you confirm if this works on your setup?

Loikkk’s picture

It works I confirm :)

mr.york’s picture

Status: Active » Fixed

Thanks, committed to webform2pdf 7.x.

Status: Fixed » Closed (fixed)

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