[RESOLVED]Form sending email for all departments

SuD 22 Mar, 2012
Hi,

Excuse my english and my questions, but it is not my first language, and I'm a NEWBEEE in joomla and web software. =P

I'm creating a contact form for my scout group site, and it should send the contact message for 1 of the 4 department of our group. BUT all the 4 emails are receiving the same message.

Can you help me showing me what am I doing wrong?

In the "PREVIEW" table, for the Department choice I'm using the "SELECT BOX" element.

In Select box, I'm using this in the "OPTIONS" space:
"email1@hotmail.com=Group Director
[email]email2@hotmail.com[/email]=Department 1
[email]email3@hotmail.com[/email]=Department 2
[email]email4@hotmail.com[/email]=Department 3"
and thats all in here.

In the "EVENTS" part, I use the "EMAIL" element 4 times, and put this:
In all 4 EMAILS elements I put:
General/Action Label: Each one with the name I have used above: Group Director, Department 1...
General/Attachments fields name: name,email,to,subject,message

Template:
<p>Name: {name}</p>
<p>E-mail: {email}</p>
<p>Subject: {subject}</p>
<p>Message: {message}</p>

Static:
Each one of the 4 with their email address in "To (Required)": [email]email1@hotmail.com[/email], [email]email2@hotmail.com[/email]...

Dynamic:
Dynamic To: (the names) Group Director, Department 1...
Dynamic Subject: subject
Dynamic From name: name
Dynamic From email: email

And thats it... I can fill the form, it's working great... the only problem is that ALL THE DEPARTMENTS are receiving all the messages, even if I choose the "GROUP DIRECTOR" the others departments receive it too, and so long...

What am I doing wrong? =P

Thanks for now


EDIT: I manage to find my mistake. I was creating 1 "Action Element" EMAIL in "Event" for each email... and all I should have done is create 1 (ONE) EMAIL and put the Field Name of my Select Box in the "DYNAMIC TO" space, and it would send the message for the correct email. =P
marcvascos 22 May, 2013
Please anyone help me..

i made all the SuD done too...
and my form not work with multi department or multi email...
in dynamic to i put input_department = the name of my select label have 3 emails..
but after user click in send button the form show error 'need minimum one destinatary'

help me anyone
please
GreyHead 24 May, 2013
Hi marcvascas,

The standard email action will only accept one email in the Dynamic TO box. If you use my Email [GH] action then you can use an array or list of addresses.

Bob
This topic is locked and no more replies can be posted.