PDF is created correctly. Can download it ok. but there is not attachment on the email. just a bunch of gibberish. I'm using webform 3.15. HTML mail. SMTP auth. checked all the other posts that have had this issue, it would appear that I have the latest version, so all patches appear present in new version.
hmmmm?
Comments
Comment #1
butteryak commentedPS. not using a custom webform PHP template
Comment #2
butteryak commentedSMTP debugging, error in the log states. Headers cannot be modified, headers already sent by SMTP module...etc.etc.....turning off SMTP does not seem to make a difference though. No error in log, but still get same result with email. No attachment, just lines and lines of characters.
Comment #3
butteryak commentedetc etc
Comment #4
butteryak commentedTurning off HTML mail solves this issue. but of course, I need HTML mail. hmmmmmm?
Comment #5
butteryak commentedwell, I updated my html mail, had to install mail mime (not mimemail), and attachments now work. The only issue I have now, is that if I send attachments, the body of the email does not work. it's either body of e-mail or attachment, not both?
Comment #6
butteryak commentedIf I change my settings in "Mail system" module for webform to send emails with the defaultSendMail method as apposed to HTMLmail, it works. this just means my webform submissions are not send wiht HTML template, just plain text. which is fine, I dont' need HTML mail for webform submissions, just newsletters. so got a working solution.
Comment #7
mr.york commentedComment #8
silurius commentedAre webform2pdf and htmlmail just fundamentally incompatible? I am experiencing this issue after installing/configuring htmlmail today. It would be really useful to be able to use both together.
Edit: Here are the dblog errors.
Lines 640-657 (error points to "if ($email && $email['exclude_empty']) {"):
Notice: Undefined index: exclude_empty in webform_submission_render() (line 645 of /var/www/sites/examplesiteplatform/sites/all/modules/webform/includes/webform.submissions.inc).
Notice: Undefined offset: 0 in mimemail_html_body() (line 383 of /var/www/sites/examplesiteplatform/sites/all/modules/mimemail/mimemail.inc).
Lines 373-423 (error points to "$plaintext = drupal_html_to_text($matches[0]);"):