Dear Greyhead,
Thanks for your reply.
I didn't even know about the debug function. Thanks for learning me this usefull option!
According to the debug function, the form was sent to the email of the dynamic to. However it really doesn't arrive there.
----------------------------------------------------------
1.Form passed first SPAM check OK
2.Form passed the submissions limit (if enabled) OK
3.Form passed the Image verification (if enabled) OK
4.Form passed the server side validation (if enabled) OK
5.$_POST Array: Array ( [contactwith] => [email]email1@domain.nl[/email] This e-mailadres is protected against spambots. U need Javascript to be able to see it. [aanhef] => Dhr. [voornaam] => Test [achternaam] => Test [adres] => test [postcode] => test [plaats] => test [telefoon] => test [fax] => test [email] => [email]emailofvisitor@hisdomain.nl[/email] [levenseindebesluit] => te willen ontvangen [onderwerp] => Dit is een test [bericht] => Dit is een test [Submit] => Bericht verzenden [9df277f04fab00d57948c3206b3cb570] => 1 [1cf1] => dabf1de4d60a1bea801f0c6e2f4ecb16 [chronoformname] => contact )
6.$_FILES Array: Array ( )
7.Form passed the plugins step (if enabled) OK
8.An email has been SENT successfully from (domain.nl)noreply@domain.nl to [email]email1@domain.nl[/email] This e-mailadres is protected against spambots. U need Javascript to be able to see it.
9.An email has been SENT successfully from (This website) [email]noreply@domain.nl[/email] to [email]emailofvisitor@hisdomain.nl[/email]
10.Debug End
11.Redirect link set, click to test:
index.php?option=com_content&view=article&id=42:bericht-verzonden&catid=1
------------------------------------------------------------------------------------
I entered the On submit code from FAQ#31
I have it like this:
<?php$emails_2 = array('em1'=>'email1@domain.nl', 'em2'=>'email2@domain.nl', . . .);$MyForm =& CFChronoForm::getInstance('contact');$MyFormEmails =& CFEMails::getInstance($MyForm->formrow->id);$MyFormEmails->setEmailData(1, 'to', $emails_2[$_POST['recipients']]);?
And ofcourse I adjusted the form code like this:
<select name="contactmet" title="Geen keuze gemaakt" id="contactmet">
<option selected value="">Selecteer</option><br>
<option value="em1">Bestuur</option>
<option value="em2">Steunpunt</option>
</select{/code]
But now I get the following parse error:
Parse error: syntax error, unexpected T_VARIABLE in /home/XXX/domains/domain.nl/public_html/components/com_chronocontact/libraries/customcode.php(64) : eval()'d code on line 1>
Help for both issues would be greatly appreciated.
Many thanks in advance.
With best regards,
Wicher