I use Webform block to add lead forms to each node. I have successfully used the template files to add CCK fields to the emails sent, however I really would like to be able to send the email to not only the site admin but also to the author of the node the webform is associated with

is there way to add the drupal users email to the headers?

Comments

quicksketch’s picture

Status: Active » Closed (fixed)

This isn't directly possible through theming, because the theme layer is only invoked after the e-mail list has been generated. This is sort-of possible by modifying the contents of $node->webform['additional_emails'] in the additional processing field. I'd probably recommend using the 3.x version though and just setting up 2 e-mails to different users.

I'm closing this issue directly considering it is so old. Help with the additional processing/validation fields is not provided in the Webform issue queue.

dreadfulcode’s picture

I don't think this should be closed because there is no clear explanation on how to contact the author of a node via the webform module-- unless you can prove me wrong!

I am using the latest beta version, and I'm still stuck.

Barring the difficult topic of handling anonymous users---Why is there only a token available for the user that is logged in? Was this module created mainly to allow logged in users to send inquiries to themselves?

Any help would be appreciated.

dreadfulcode’s picture

I would like to point out that I have opened up this issue

here:

because I strongly believe there isn't sufficient information on how how to tackle this issue.

I would also like to point that having this feature easily configurable in a future release would make the webform module an even more flexible and multifaceted solution for the drupal community:)

seanenroute’s picture

I too would find it very useful to have the ability to use the node author token to send a webform to a nodes author. Will this be a feature in future versions of webform?

argentin’s picture

Status: Closed (fixed) » Active

I need this fix. I offer $50 to someone if help me to send form to node author.

quicksketch’s picture

Status: Active » Closed (won't fix)

Closing after lack of activity.

As mentioned in the submission guidelines, I don't provide help with custom coding:

Any issues regarding "how do I code ..." or "how do I theme ..." will not be answered. Please look elsewhere for coding resources.

Please refer to other resources such as IRC or Drupal StackExchange to ask your questions.

jasom’s picture

Issue summary: View changes

I wrote this comment because Google still sends users to this post even it's issue for D6 (I was sent here several days ago when I tried to find a solution)

Question:

however I really would like to be able to send the email to not only the site admin but also to the author of the node the webform is associated with

Answer:
Yes, using Webform 4.x it's possible. You can achieve this with dynamic token [current-page:query:?]. Token for current node author email will be [current-page:node:author:mail]. However, you must apply this patch to the Token module at first (this is status in Sept, 2015; later the patch will be committed for sure :-)

You can find step-by-step instruction on how to send email to current node author in my post I just wrote on the topic.