Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I have created a webform. There is one field "Send invitation to your friends" . In this field user can enter their friends email ids (Comma seperated) For example [email protected],[email protected],[email protected] etc. I want to send a common email "Welcome and join us" to all these people. Can anyone help me, how can I proceed?

share|improve this question
    
r u drupal 6 or 7? –  user842 Jun 23 '11 at 22:48
    
Drupal 6 and webform 3.4 –  DrupalNewbie Jun 23 '11 at 23:54
2  
I am not fully sure how to achieve this. It might be possible with the use of tokens and/or rules, but I am sure someone else can chime in. I don't want to assume the full scope of what the webform is for, but if it's just inviting people to the site, have you considered just using drupal.org/project/invite ? –  user842 Jun 24 '11 at 0:19
    
Thanks Nigel. Invite module works great :) –  DrupalNewbie Jun 24 '11 at 16:42
add comment

2 Answers

You can send custom emails to addresses submitted in the form. When creating the form, you have to select 'email' for the field type. Once you've done that, go to the 'Emails' tab in the webform, and add a new email using the 'Component value' menu; you should see your Email field in there (you can add as many of these as you want). This sets it up to send an email to the email address entered in the form, in your case the friends' email addresses.

From there you can customise the email options.

Edit: Whoops, this answer is for Drupal 7 specifically, but (if I remember correctly) the option exists in Drupal 6 as well.

share|improve this answer
    
thanks, i didn't even noticed this component type and i was about to create a function to implement this fonctionnality :) –  Mika A. Jun 11 '12 at 8:35
add comment

Possibly, you could use webform rules module to help you there. I am actually in the process of looking into something similar(ish) now.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.