I am using Webform for tell-a-friend emails. The site visitor provides emails (theirs and the friend's) and a message, and an HTML email is sent to the friend. I'm noticing a few glitches, questions, etc.:
1. Putting %email[your_message] in the custom email template does work, but it comes out with an odd format. Say the message typed is "Thought you'd be interested in this site." What gets sent in the email body is "Your message Thought you'd be interested in this site." Including the field label "Your message" makes sense to me for the standard email format, but not for a custom template. Is there any way to isolate just the value of the field?
2. My form asks the sender's name and email address, and I have those components selected for the email from name and email from address, but the email sent only has the email address in the From field. I was expecting the format Name <address>.
3. It would be nice to let site visitors send to more than one friend per submit, but I can't figure out a way to do this. Any ideas? (I believe this is a different problem than the one in http://drupal.org/node/1160400 since in my case the addresses would be entered on the form.) FWIW this module had some good functionality for recipient emails, but it was never ported to D7 and it appears to have been abandoned. [See screen capture below.]
| Comment | File | Size | Author |
|---|---|---|---|
| ecardcapture.png | 11.24 KB | m.e. |
Comments
Comment #1
quicksketchUse the %value[your_message] token instead of %email[your_message] token.
There was a bug in 3.11 that made the first e-mail configuration's name be used for all e-mails. Try 3.12.
You could simply add multiple e-mail fields and set up a different e-mail configuration for all of them. If the field is left blank Webform will not attempt to send an e-mail. Webform intentionally does not allow comma-separated e-mail addresses to prevent it from being used as a spam tool.
Comment #2
m.e. commentedExcellent! #1 and #3 are now solved. Before I upgrade as per #2, I wanted to ask if 3.12 now incorporates the patch described in #15 of http://drupal.org/node/1078750 . I have that in place and it's more important on my site than the problem reported here.
Thanks for a great module and timely help!
Comment #3
m.e. commentedSo is that patch committed to 3.12? I'd like to know before trying to upgrade. Thanks again!
Comment #4
akshita commentedTrying to customize the email address for sender .
on the form the field_key value is email_id when used %value[email_id] and error is displayed saying :
"The entered e-mail address "%value[email_id]" does not appear valid."
E-mail from address
Default: webmaster@ag.ny.gov
Custom: %value[email_id]
Please help me to fix this.
Thanks in advance
Akshita
Comment #5
vernond commented@Akshita - A priority of Critical is for when webform is completely broken and utterly unusable. Also, your issue is different from the one used to start this thread, so in future please open a new thread rather than hijack an existing one.
Try using the Component: dropdown list to specify the sender email address.
Comment #6
quicksketchSounds like everything in this issue has been answered. Please open a new request instead of reopening this one in the future.