Different recipient based on selection within form?
Posted: 23 July 2007 12:22 PM   [ Ignore ]
Newbie
Rank
Total Posts:  18
Joined  2007-04-12

Can we have the form sent to different recipient(s) based on what is selected in the form?  For example, I’d like to use a drop down to list the department a form should be sent to and have it emailed to the appropriate department.  Can Freeform do this?  By the way, this is an AWESOME module that has saved my bacon more than once already!!

Profile
 
 
Posted: 23 July 2007 05:14 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  736
Joined  2004-03-30

svh1,

In older versions of Freeform you could dynamically control the recipients using Javascript since the recipient list was sent as the value of a form field. This opened the door to security problems with the form such that hackers could hijack the form and use it to send spam to whomever they wished. So now, no, you cannot dynamically control the recipient list.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 24 July 2007 08:08 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  18
Joined  2007-04-12

Ok, fair enough.  Thanks for the reply Mitchell.  I hope you’re getting some rest and relaxation between all of our questions. smile

Profile
 
 
Posted: 24 July 2007 10:00 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  736
Joined  2004-03-30

I had an idea. I think a good approach would be for you to set a parameter for allowed recipient addresses. Then you could dynamically set the recepient depending states of te form. If the recipient you submit is in the allowed list, all good. Otherwise no spamming!

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 24 July 2007 12:09 PM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  18
Joined  2007-04-12

lol, you lost me.  How would I go about that?

Profile
 
 
Posted: 24 July 2007 12:24 PM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  736
Joined  2004-03-30

Yeah. I didn’t say enough. It’s actually a feature I need to build in one of these days.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 30 July 2007 01:07 AM   [ Ignore ]   [ # 6 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

If you need this functionality right now, I can think of a way. I have actually done something like this, where all the mail went to a central mailbox, and was automatically sorted, parsed anf forwared from there using procmail.

So, if you have a working of procmail, or know somebody who does, this could work for you. Otherwise, waiting for Mitchell to implement this feature is probably the safer solution…

 Signature 

Ingmar Greil

Profile
 
 
Posted: 08 August 2007 02:35 AM   [ Ignore ]   [ # 7 ]
Newbie
Rank
Total Posts:  2
Joined  2007-08-07

Hi any update on Mitchell’s feature?

We currently have a contact form which uses a select option as a drop down of available departments to send an emai tol. Is there a way to still use this?

I can get it to work using the default email module in EE but having problems with multiple fields in the email.

Many thanks
Michael

Profile
 
 
Posted: 20 August 2007 08:23 AM   [ Ignore ]   [ # 8 ]
Newbie
Rank
Total Posts:  2
Joined  2007-08-07

Apologies for bumping this thread, but any thoughts?

The default EE email module allows multiple recipients, but lacks the email template and logging of entries. I’m near the end of developing a site and this is the last issue on the to-do list smile

Much appreciated.

Profile
 
 
Posted: 09 October 2007 05:52 AM   [ Ignore ]   [ # 9 ]
Newbie
Rank
Total Posts:  2
Joined  2007-06-20

Hi There,

Just to add my pennies worth. I think this would be a great feature. We get this request on just about every site we develop. It’s in high demand, especially from larger clients who have multiple departments.

Other than that, great work - we use free form on just about every job!

Cheers,

Dave.

Profile
 
 
Posted: 09 October 2007 10:45 AM   [ Ignore ]   [ # 10 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  736
Joined  2004-03-30

Thanks All for logging your feature requests. We’ll try and fold them in as soon as possible.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 15 February 2008 05:44 AM   [ Ignore ]   [ # 11 ]
Newbie
Avatar
Rank
Total Posts:  16
Joined  2007-07-03

Apologies for bumping this but I think this is also cover in this thread http://www.solspace.com/forums/viewthread/379/

Profile