Email isn’t sent after validation fails but then is corrected
Posted: 22 July 2007 09:56 PM   [ Ignore ]
Newbie
Rank
Total Posts:  18
Joined  2007-01-22

Strange problem here.

If I fill out a form and leave a required fields out on purpose (i’m just testing the forms at the moment) the required field tag is picked up and correctly says to fix the error. If I click to go back, fix the error and then submit it the form redirects to by ‘return’ page but the email is never sent.

Any ideas?

I’m running v2.5.2 and EE 1.6.

I’ve tried phpmail and sendmail and both give the same result.

{exp:freeform:form form_name="contact_us_form" return="{homepage}/thank_you" notify="email@address" template="contact_us_template" required="name_contact|email_contact|question_contact"}

    
<label for="textinput">Name:<span class="required">*</span></label><br />
    <
input type="text" id="textinput" name="name_contact" size="25" /><br />

    <
label for="textinput">Email:<span class="required">*</span></label><br />
    <
input type="text" id="textinput" name="email_contact" size="40" /><br />

    <
label for="textareainput">Question:<span class="required">*</span></label> <br />
    <
textarea id="textareainput" name="question_contact" rows="10" cols="65"></textarea><br />


    
{if captcha}
     
<span class="formtext">Please enter the word you see in the image:<span class="required">*</span></span><br /><br />
    <
label for="textareainput"> </label> <br />
{captcha}<br />
    <
label for="textareainput"> </label>
    <
input type="text" name="captcha" value="" /><br /><br />{/if}
    
    
<input type="submit" value="Submit" /><br /><br /><label for="submit"><span class="required">*</span>required field.</label>

                    
{/exp:freeform:form} 

Profile
 
 
Posted: 30 July 2007 01:20 AM   [ Ignore ]   [ # 1 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

Does the data get stored in the database correctly upon submissions? If so, it’s probably an email problem, have you access to your mailserver logs?

 Signature 

Ingmar Greil

Profile
 
 
Posted: 30 July 2007 05:52 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  18
Joined  2007-01-22

I’ll double check this problem tomorrow - but yes I believe the data does get stored into the database but the email isn’t sent. The email is sent however if you fill the fields in correctly and a validation isn’t called on. If the emails are sent normally I can’t see why there can be an error with the email only when you have to be sent back to correct a field but I will try and double check tomorrow.

Profile
 
 
Posted: 01 August 2007 02:40 PM   [ Ignore ]   [ # 3 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

Did you get a chance to check this?

 Signature 

Ingmar Greil

Profile
 
 
Posted: 01 October 2007 07:45 AM   [ Ignore ]   [ # 4 ]
Jr. Member
RankRank
Total Posts:  39
Joined  2007-09-29

del

Profile
 
 
Posted: 20 November 2007 07:02 PM   [ Ignore ]   [ # 5 ]
Newbie
Rank
Total Posts:  18
Joined  2007-01-22

I’ve started up on this project again and this is still an issue for me.

I’ve tried two separate servers now (my local dev server and my test live web server).

I’m waiting on a fix for freeform and EE 1.6.1 (with the return paramater) but this is a total show stopper for me.

I’ve tried PHP and SEND mail in the EE email config.

This is my current template:

{exp:freeform:form form_name="contact_us_form" return="{homepage}/contact_submitted" notify="test@test.com" template="contact_us_template" required="name_contact|email_contact|question_contact"}

 
<label for="textinput">Name:<span class="required">*</span></label><br />
 <
input type="text" id="textinput" name="name_contact" size="25" /><br />

 <
label for="textinput">Email:<span class="required">*</span></label><br />
 <
input type="text" id="textinput" name="email_contact" size="40" /><br />

 <
label for="textareainput">Question:<span class="required">*</span></label> <br />
 <
textarea id="textareainput" name="question_contact" rows="10" cols="65"></textarea><br />


 
{if captcha}
  
<span class="formtext">Please enter the word you see in the image:<span class="required">*</span></span><br />
 <
label for="textareainput"> </label>  <label for="textareainput"> </label> <br />
{captcha}<br />
 <
label for="textareainput"> </label>
 <
input type="text" name="captcha" value="" /><br /><br />{/if}
 
 
<label for="textareainput"> </label> <input type="submit" value="Submit" /><br /><br />
 <
label for="textareainput"> </label><span class="required">*</span>required

{
/exp:freeform:form} 

Obviously with my email in the notify section.

I’ve upgraded to freeform 2.5.8 bu not change.

So I submit a form that fulfils all of the validation and it is sent fine (I get an error on 1.6.1 but thats just cause f the incompatabilities with freeform and 1.6.1 at the moment)

The data is stored in the database entries and the email is sent.

I complete the form, inentioanally leaving a field so validation picks it up. I get the standard EE validation error - saying I left out a field. Press back. All my data is there. Complete the missing field. Press submit. The data is stored in the database.

No email is sent.

I’m not sure what else I can try? Any Ideas?

Willing to pay.

Profile
 
 
Posted: 21 November 2007 05:05 PM   [ Ignore ]   [ # 6 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  736
Joined  2004-03-30

Dane,

Mad -thanks for being so precise with your bug report. I have all of the bugs you mention fixed in your version of Freeform. I will be releasing that new version in a moment, but you won’t need to upgrade.

And yes, the two validation bugs you mention were related.

Thank you again. Many people will surely thank you.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 21 November 2007 05:22 PM   [ Ignore ]   [ # 7 ]
Newbie
Rank
Total Posts:  18
Joined  2007-01-22

Woohoo - Thanks so much!

Profile