FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Form Builder - Forms won't send email
#11
Hi karks88,

Curious! So I looked through the code and did a few tests and everything does seem to be working properly. I was careful to insulate the main functionality of form processing (like email notifications) as much as I could from the actual templates, to allow as much customization as possible without causing problems, but it's still possible there's a glitch somewhere along the line.

Two questions:
1. I see you've tested your email template - good! Q: does the "Event Trigger" option on the Edit Email Template -> Configuration subtab have the "On submission" checked? Emails won't get send out unless that's checked.
2. When you edit your form in the Form Builder, are there only two pages listed on the "Preview Page" line at the top: ("1" and "Thanks") or do you see more?

Also, I see there's a JS error on your form page, relating to fancybox - a JS script for displaying images in dialog windows. It's automatically included by the Form Builder code. This is almost certainly unrelated, but it would nice to fix it anyway, just to eliminate it.

I think it may be caused by multiple jQuery's being included in the page. Any chance you could remove this line?
Code:
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'>

The Form Builder template already includes version 1.5.1 of jQuery. I'm not sure if that would cause problems with your custom code in the page (?).

Let me know about the answers to #1 & #2 above and we'll go from there!

- Ben
Reply
#12
Thanks so much for your time Ben! You've given me some good points to check out. I'm going to go through this and will let you know.
Reply
#13
Ben, you were right - there was a jQuery conflict! That's what was allowing for blank forms to be submitted.

However, for some reason the emails still aren't being sent.

One thing new I did notice when in the Form Tools admin. If I send a test using both Text & HTML together, it won't send. If I send just text, or just HTML, the test works. Could that be part of the problem?

Another thing I notice is that in the Content area of the Email Template editor, if I use any of the example code for the Text template, I can save it but the next time I go into the template editor, that area is blank. The HTML portion keeps it's content, but for some reason the Text field is always blank the next time I visit the page.

At least we're getting closer. Thanks again for the help, guys!
Reply
#14
Hi karks,

Quote:One thing new I did notice when in the Form Tools admin. If I send a test using both Text & HTML together, it won't send. If I send just text, or just HTML, the test works. Could that be part of the problem?

Ah! Yes, that's the problem. The default PHP mail() script sometimes doesn't permit what's called "multipart" emails - i.e. emails that are split into multiple chunks, like sending text + html at the same time.

To fix it, just remove the content from one of them (text or HTML) and the emails should now get sent properly.

Quote:Another thing I notice is that in the Content area of the Email Template editor, if I use any of the example code for the Text template, I can save it but the next time I go into the template editor, that area is blank. The HTML portion keeps it's content, but for some reason the Text field is always blank the next time I visit the page.

Hmmm! Wow, you're really encountering problems..! That definitely shouldn't happen. Did I already ask if you've ran the System Check module tests? If not, run them now.

Other than that, I really don't know... try logging out then in, and trying again (just to make sure it's not a weird sessions glitch). Failing that, I may need to look at the problem directly.

- Ben


Reply
#15
I just ran the System Check and the only errors I found were in the Orphan check:

TABLE: goodallforms_field_settings
- num orphans: 8
- error description:
1. invalid field_id: 37
2. invalid field_id: 36
3. invalid field_id: 36
4. invalid field_id: 62
5. invalid field_id: 62
6. invalid field_id: 61
7. invalid field_id: 61
8. invalid field_id: 37
Reply
#16
Hey Karks,

Yeah, don't worry about those - just go ahead and click the "repair" link (or whatever it says). Those won't cause any problems.

So... yeesh, it's tricky to know what to suggest. What browser +OS are you using? Do you get any javascript errors on that page?

- Ben
Reply
#17
I just checked for JS errors, none appear to be coming through. I'm using Firefox 12 and Windows 7 64-bit.

It is weird considering that the test emails send!
Reply
#18
Is this still a good example to use?:

http://www.goodallpools.com/formtools/mo...ervice.php
Not a FT employee, just a FT user lending a hand. If I've been helpful, please rate.

[Image: giraffe_long_85.gif]
Reply
#19
(May 4th, 2012, 3:43 PM)michatmaster7 Wrote: Is this still a good example to use?:

http://www.goodallpools.com/formtools/mo...ervice.php

Yes, thanks!
Reply
#20
Who does your website? Or rather, what program is used to create the pages, etc? That page has a TON of HTML errors. Not saying that these errors are causing your form not to work, but I would start there. Regardless, it makes it more difficult for search engines to process your page with that number of errors.

I'm attaching an XLS file of all the errors. I would work from the top of the list down until they are all resolved. Then try your form again. I don't suggest adding elements like FormTools to your page until your page can pass W3C code validation.

Attachment:
.xls   goodall_pools_errors.xls (Size: 44.5 KB / Downloads: 0)
Not a FT employee, just a FT user lending a hand. If I've been helpful, please rate.

[Image: giraffe_long_85.gif]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)