About send email to friend module

mewoo - September 6, 2009 - 14:04

Hello there,

I would like to add a send to friend function under a webform confirmation message. It's about a field call friend's name and friend's email and end to up to 3 friends.
At the backend, I can find out friend’s name, friend’s email, open count, click count.

any suggestion?

Thanks so much!!!

Hi there, Couple of questions

chrisshattuck - September 7, 2009 - 04:32

Hi there,

Couple of questions for clarification: Are you using the webform module, or are you talking about a form in general when you say 'webform'? Are you looking for an existing module, or an idea of where to start when building your own?

Cheers,
Chris

Build a Module.com - The definitive video guide to Drupal development

Cheers,
Chris

Build a Module.com - The definitive video guide to Drupal development

Hi Chris, Yes I'm using a

mewoo - September 7, 2009 - 05:11

Hi Chris,

Yes I'm using a webform module, and it got a function show a message or page after I summit the form.

And I want to find an idea who can let visitor send the link to friends after they summit the form.

Thanks,
mewoo

Gotcha. Well, what you can do

chrisshattuck - September 7, 2009 - 19:44

Gotcha. Well, what you can do is create 3 e-mail inputs, and then on submission, add some php code to the "Additional processing" input (in the Weform advanced settings group). You can use the drupal_mail() function to send the mail.

If you did this, be aware of the security implications and plan accordingly. Opening up a form for an anonymous person to send e-mail to any e-mail address can be exploited if not checked.

Cheers,
Chris

Build a Module.com - The definitive video guide to Drupal development

Cheers,
Chris

Build a Module.com - The definitive video guide to Drupal development

 
 

Drupal is a registered trademark of Dries Buytaert.