Needs review
Project:
Webform Mass Email
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Oct 2011 at 00:16 UTC
Updated:
3 Apr 2018 at 19:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
isampo commentedHi,
It's not currently planned but it might be possible. Patches are welcome. :)
Comment #2
isampo commentedThe token support is now written for the module and it's working.
However, I didn't push it in yet since Webform module has some issues when filtering the tokens manually in code.
When that gets fixed, I'm going to push this into dev.
Comment #3
jorgsacre commentedhi,
I'm wanting to use tokens in the mass email module too.
Is there a way to get token support at this time?
Thank you.
Comment #4
isampo commentedHi,
I think the patch for Webform module is still pending to be committed.
You can, however, patch your Webform module with the patch found here and then directly use the token branch in Webform Mass Email (I think it was called 'tokenz'). That is kind of a hassle to do and might break in the future, but it should work for now at least. :)
Comment #5
ThDC commentedHi,
Is token-support possible with the webform 4.x-branch?
Read on linked page from comment #2.
But the tokenz-commit doesn't seem to work as the tokens-area doesn't appear.
Thank you!
Comment #6
ThDC commentedFound a little bug in the code I altered (stupid mistake...), and actually, it works!
For people, like myself using D7 and Webform 4.x:
don't forget the Webform 4 patch!
And make sure to us [submission:values:$key] as a token, and not %value[$key] (Drupal 7 tokens)!
Thanks for the module!
Comment #7
simone960 commentedI have applied the patch and manged to send out the emails, but the token didn't work no matter how I set. Each submitter received email where content exactly as I entered in the body field below. Any idea how to fix this ? I'm using webform 4. I wish to resend the result back to all submitter since I missed out sending to some when the mail server was down for some time.
Comment #8
jrochate commentedHi.
I'm having the same problem: tokens don't get resolved.
Did you managed this?
thanks.
Comment #9
jrochate commentedOk, I've figured it out.
here are the steps, using Webform 4.x:
1. Make sure Webform 4.x patch is applied
2. Merge this two commits. I've done it by hand:
3. Make sure to use Drupal 7 token style, like in webform email configuration: [submission:values:?]
4. I have changed the name of this function that is being called in webform_mass_email.pages.inc
- _webform_filter_values to webform_replace_tokens
That formats the replacements more clear.
hope this helps everyone.
This is a great module. It's a pitty that is somewhat abandoned.
Comment #10
isampo commentedGood thing that you got it working.
I'm sorry that I don't have the necessary time at the moment to add new features for the module. That being said, feel free to provide a working patch that works with the latest Webform and I'll be happy to review & test it and create a new release out of it.
Comment #11
liberatrThis patch includes both commits referenced in #9, but does not include the "webform 4" patch.
Comment #12
liberatrHere is an updated version that uses the D7 new-style tokens.
Comment #13
liberatrReformatting patch.
Comment #14
liberatr