Forums

CF v4 with Joomla 1.7

buddyq 30 Jan, 2012
I converted my site from 1.5 to 1.7. I exported and imported the forms. I have CF 4.0 RC2.0.

My form shows up, thanks page works. Data gets inserted into the table. However, it does NOT send email to me when form is submitted.

I originally was using plugin to show the form. I saw a post that it might be the case. But it produces the same results when viewing the form from menu item.

form is at http://www.tangerinefiles.com/order-microsite

I need this fixed asap!!! This how my customers order. I made sure everything in the settings was enabled and correct and cannot see why its not working. Please help!

-------UPDATE-------
Just tested another email recipient and it did send. So the problem is that it does not send when using dynamic values. I have static value for sent to email so that it sends to me. I then have code in in 'before' section to have a dynamic subject. Using php, it does get the value and create the proper subject line. It does work fine on J1.5. So what is the problem here? Looks like it will not real the values from Dynamic and static fields are truly (required) as stated, but then I wonder how this is supposed to work??
GreyHead 30 Jan, 2012
Hi buddyq,

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 may need to switch to the Advanced Wizard to do this; if you want to continue to use the Easy Wizard please make a copy of your form first and add the Debugger action to the copy.

Bob
buddyq 30 Jan, 2012
Array
(
[ordered_by] => Frontend
[email] => [email]gordon@ramsay.com[/email]
[for_agent] => Glkjsef
[brokerage] => Tate Property
[microsite_url] => dss.www.com
[site_title] => 1234 Here
[city] => austin
[instructions] => sdfsdf
[submit] => Submit
[e1dc8d89c3b6985e1e8046676fd5db5d] => 1
[option] => com_chronoforms
[chronoform] => new_microsite_form
[event] => submit
[Itemid] =>
[subject] => New Microsite for Tate Property
[chronoform_data] => Array
(
[cf_uid] => 77d85b832c74018be848c5b4d0e24fe0
[cf_created] => 2012-01-30 12:43:55
[cf_ipaddress] => 99.67.236.32
[cf_user_id] => 0
[ordered_by] => Frontend
[email] => [email]gordon@ramsay.com[/email]
[for_agent] => Glkjsef
[brokerage] => Tate Property
[microsite_url] => dss.www.com
[site_title] => 1234 Here
[city] => austin
[instructions] => sdfsdf
[submit] => Submit
[e1dc8d89c3b6985e1e8046676fd5db5d] => 1
[option] => com_chronoforms
[chronoform] => new_microsite_form
[event] => submit
[Itemid] =>
[subject] => New Microsite for Tate Property
[cf_id] => 71
)

[chronoform_data_cf_id] => 71
)
GreyHead 30 Jan, 2012
Hi buddyq,

There is not email content in the Debugger output so it looks as though you either don't have an email action in your form On Submit event or it isn't enabled.

Bob
buddyq 30 Jan, 2012
It most certainly IS in there and enabled!

That is part of the issue. Like I said, I get an email if I use the STATIC textfields. No email if I use dynamic.
GreyHead 30 Jan, 2012
Hi buddyq,

There are a couple of possibilities here. One is that you have a dash in one of your input names. These sometimes cause problems - but mostly with DB Saves. Ah, Looking again you have ordered_by in the debug data and ordered-by in the Dynamic From Name box. The missing name will probably break the email.

(The second was the code used to build the dynamic subject but that looks OK in the Debugger output.)

Bob
buddyq 31 Jan, 2012
No dice. I changed the 'ordered_by' to 'orderedby' in both the field and the dynamic field for the email and still it will not send an email. Any new advice? This seems to be a bug since it works if I use static values and it will not send when using dynamic.
GreyHead 31 Jan, 2012
Hi buddyq,

Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

Bob
GreyHead 31 Jan, 2012
Hi buddyq,

I suspect that the problem is that you have used the Dynamic From Email address.

I strongly recommend that you do *not* use the Dynamic From Email element in your Email Setups. Using this often results in your emails being marked as spam and dropped into a spam filter. Instead use the static From Email with an address that matches the site domain name and use Dynamic ReplyTo Email for the user email. The result is the same but with a much better chance of good delivery.

Bob
buddyq 31 Jan, 2012
I changed it to use Dynamic Reply To as you stated and also put in a static from email address. Now when I fill out the form, it says successful but it gives me this error:

Notice: Undefined offset: 0 in /home/tangeri/public_html/libraries/joomla/mail/mail.php on line 402

So, now what's wrong? No email was actually sent either.
GreyHead 31 Jan, 2012
HI buddyq,

I don't know - what is happening on that line?

As you will probably have seen your form sends an email OK from my test site.

Bob
buddyq 01 Feb, 2012
I have received only one email. However, did that come from the settings you suggested for me? If so, can you export your form and let me try that one? Weird though that I only get an error when using Dynamic Reply To and setting static From fields.

I wouldn't that that should cause an error and break. Like I said, the form on 1.5 worked just fine the way it was. I'm thinking this has to be a bug? It shouldn't be this hard.
buddyq 01 Feb, 2012
All fixed! Well, it probably not that broken to begin with actually.... i'm affraid to admin, but they were in the trash for some reason! Thanks for all the help!
GreyHead 01 Feb, 2012
Hi bussyq,

:-)

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