Hi!

Is there any token support planned?

That means that i can include all webform fields into the mailing text.

wr
paulap

Comments

isampo’s picture

Hi,

It's not currently planned but it might be possible. Patches are welcome. :)

isampo’s picture

Status: Active » Postponed
StatusFileSize
new139.14 KB

The 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.

Webform Mass Email form with tokens

jorgsacre’s picture

hi,

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.

isampo’s picture

Hi,

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. :)

ThDC’s picture

Issue summary: View changes

Hi,

Is token-support possible with the webform 4.x-branch?

Read on linked page from comment #2.

Thanks, committed to 7.x-3.x branch. This isn't necessary in the 4.x branch because it uses the D7 token system.

But the tokenz-commit doesn't seem to work as the tokens-area doesn't appear.

Thank you!

ThDC’s picture

Found 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!

simone960’s picture

I 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.

SID: [submission:sid]
Submitted on [submission:date:long]

Your submitted values are:
[submission:values]
[submission:values:name]
jrochate’s picture

Hi.

I'm having the same problem: tokens don't get resolved.

Did you managed this?

thanks.

jrochate’s picture

Ok, 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.

isampo’s picture

Good 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.

liberatr’s picture

This patch includes both commits referenced in #9, but does not include the "webform 4" patch.

liberatr’s picture

StatusFileSize
new6.03 KB

Here is an updated version that uses the D7 new-style tokens.

liberatr’s picture

StatusFileSize
new5.61 KB

Reformatting patch.

liberatr’s picture

Status: Postponed » Needs review