The generated PDF might or might not be sent to some recipients.

In place of having a global choice for all of them, we could could choose to attach it or not for a given recipient.

Comments

mr.york’s picture

I would not like to include this feature but you can solve this with custom webform-mail-[nodeid].tpl.php file, where you can control the PDF submission.

jmary’s picture

I have already created such file. It looks like

	if (($cid == 294) || ($cid == 295)) {
        // Some stuff for the emails un der that condition
        }
        else { // some stuffs for the others
        include drupal_get_path('module', 'webform2pdf') . '/webform2pdf-mail.tpl.php';

        }

I have disabled :
Attach PDF as an attachment to the e-mails sent to the form recipients.

I kept Enabled :
Generate PDF Document.

But I still get the pdf in all the emails.

mr.york’s picture

Sorry. That is not working, what I suggested for you . Please check the new development version because it is content a new setup option. I hope that this will help for you, if not then please write mail for us.

mr.york’s picture

Status: Active » Closed (fixed)