Hello,

It would be interesting to add a condition to a field to filter the mails sent.

Good job with the module!

Greetings.

Comments

isampo’s picture

Thank you for the request. Will take a look at this if I get some spare time.

Patches are also welcome.

muhleder’s picture

Status: Active » Needs review

This patch adds the ability to send mails to a subset of submissions.

The code from webform that provides the results table is pulled out into the form provided by this module, and a checkbox added to allow selection of submissions to be sent to.

There is a change in basic behaviour in that it is no longer possible to email *every* single submission at once if you have more than 50 submissions - you would have to go through each page and select 50 at a time and send for them.

muhleder’s picture

StatusFileSize
new3.31 KB

Doh, and here's the actual patch

claudinec’s picture

I am using version 7.x-1.0 of Webform Mass Email. Applying the patch gave me the following output:

 % patch -p1 < Filter_emails-1316736-2.patch
patching file includes/webform_mass_email.pages.inc
Hunk #1 FAILED at 25.
Hunk #2 succeeded at 79 (offset -2 lines).
Hunk #3 succeeded at 158 (offset -2 lines).
1 out of 3 hunks FAILED -- saving rejects to file includes/webform_mass_email.pages.inc.rej

However, the patch does appear to be working - I can selectively send emails.

muhleder’s picture

@claudinec The patch is against the 7.x-dev branch rather than the 7.x-1.0 branch.

ruichao’s picture

Version: 7.x-1.x-dev » 8.x-1.x-dev
Issue summary: View changes
StatusFileSize
new3.72 KB

Here is a patch for 8.x