hi,
in the older version of Choronoforms - i've used the code below- which now seems to not working...
could you assist?
in the older version of Choronoforms - i've used the code below- which now seems to not working...
could you assist?
<?php
require_once(JPATH_BASE.DS.'define_emailg.php');
$1 = $_POST['1'];
//1 test non human bots $ 1 empty= human
if ($1) {
$emailg = $robot;
}
else {
$country = $_POST['Country'];
if (($country == 'United States'))
{
$emailg = $a;
}
else {
$emailg = $b;
}
}
$_POST['emailg'] = $emailg;
Hi avia.livneh,
Please see the section in this FAQ on coding differences. Adding values to the $_POST array will no longer work in the same way with CFv4.
Bob
Please see the section in this FAQ on coding differences. Adding values to the $_POST array will no longer work in the same way with CFv4.
Bob
Thank you!
i've fixed it - and now the emails do appear, and it says that "An email has been SENT successfully from..." (when the Debug is enabled) but- I still get an error- "You must provide at least one recipient email address". an you please assist?
Thanks again,
Avia
i've fixed it - and now the emails do appear, and it says that "An email has been SENT successfully from..." (when the Debug is enabled) but- I still get an error- "You must provide at least one recipient email address". an you please assist?
Thanks again,
Avia
Hi Avia,
Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.
Note: if you are using the Easy Wizard you can turn on Debug on the Others tab.
Bob
Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.
Note: if you are using the Easy Wizard you can turn on Debug on the Others tab.
Bob
hi,
here's the debug results:
Data Array:
Array
(
[q] => /test.html
[chronoform] => test
[event] => submit
[format] => html
[Itemid] => 274
[option] => com_content
[lang] => test.html
[view] => article
[id] => 324
[firstname] => test
[lastname] => test
[jobtitle] => test
[company_name] => test
[organization_url] =>
[address] => test
[Country] => test
[state] =>
[phone] => 925252525
[email] => [email]test@test.com[/email]
[Comments] =>
[submit_x] => 50
[submit_y] => 18
[submit] => Send
[emailgroup] => [email]rafaels@test.com[/email],crm@test.com,alonk@test.com,tomerd@test.com,webmaster@test.com
[subject] => test
[aa5dfd30a1b05ab4e7bf33052094b433] => 1
[subject3] => test test - test
)
Validation Errors:
Array
(
)
Thank you
Debug Data
email
10
Result
An email has been SENT successfully from (test)test@test.com to [email]rafaels@test.com[/email],crm@test.com,alonk@test.com,tomerd@test.com,webmaster@test.com
Body
Subject test
First Name test
Last Name test
Job Title test
Company Name test
Organization/Company URL
Address test
Country test
State
Telephone 925252525
E-Mail [email]test@test.com[/email]
Comments test
Other tool/s in use:
Submitted by 192.168.8.100
Attachments
array ( )
i still get an error - and non of the email are sent. if i use the static to... the emails are sent correctly.
Can you please assist?
here's the debug results:
Data Array:
Array
(
[q] => /test.html
[chronoform] => test
[event] => submit
[format] => html
[Itemid] => 274
[option] => com_content
[lang] => test.html
[view] => article
[id] => 324
[firstname] => test
[lastname] => test
[jobtitle] => test
[company_name] => test
[organization_url] =>
[address] => test
[Country] => test
[state] =>
[phone] => 925252525
[email] => [email]test@test.com[/email]
[Comments] =>
[submit_x] => 50
[submit_y] => 18
[submit] => Send
[emailgroup] => [email]rafaels@test.com[/email],crm@test.com,alonk@test.com,tomerd@test.com,webmaster@test.com
[subject] => test
[aa5dfd30a1b05ab4e7bf33052094b433] => 1
[subject3] => test test - test
)
Validation Errors:
Array
(
)
Thank you
Debug Data
10
Result
An email has been SENT successfully from (test)test@test.com to [email]rafaels@test.com[/email],crm@test.com,alonk@test.com,tomerd@test.com,webmaster@test.com
Body
Subject test
First Name test
Last Name test
Job Title test
Company Name test
Organization/Company URL
Address test
Country test
State
Telephone 925252525
E-Mail [email]test@test.com[/email]
Comments test
Other tool/s in use:
Submitted by 192.168.8.100
Attachments
array ( )
i still get an error - and non of the email are sent. if i use the static to... the emails are sent correctly.
Can you please assist?
Hi avia.livneh,
I think that you can't add a list of email addresses to the Dynamic To box in the standard Email action. You can if you use my custom Email [GH] action.
Bob
I think that you can't add a list of email addresses to the Dynamic To box in the standard Email action. You can if you use my custom Email [GH] action.
Bob
This topic is locked and no more replies can be posted.