Commit fa55b93d authored by davide.porrovecchio's avatar davide.porrovecchio Committed by Tamás Pintér
Browse files

Issue #2911898 by davide.porrovecchio: Error with mimemail

parent a277bc30
Loading
Loading
Loading
Loading
+4 −4
Changes for webform2pdf.module: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -198,10 +198,10 @@ function webform2pdf_mail_alter(&$message) {
        $html_capable = variable_get('webform_email_html_capable', false);
        if ($html_capable) {
          if (module_exists('mimemail')) {
            $attachment = new stdClass;
            $attachment->filecontent = theme('webform2pdf_mail2pdf', array('nid'=>$webform2pdf_send2pdf['nid'],'sid'=> $webform2pdf_send2pdf['sid']));
            $attachment->filename = $filename;
            $attachment->filemime = 'application/pdf';
            $attachment = array();
            $attachment['filecontent'] = theme('webform2pdf_mail2pdf', array('nid'=>$webform2pdf_send2pdf['nid'],'sid'=> $webform2pdf_send2pdf['sid']));
            $attachment['filename'] = $filename;
            $attachment['filemime'] = 'application/pdf';
            $message['params']['attachments'][] = $attachment;
          }
        }