Error on submission of Freeform
Posted: 01 July 2008 10:08 AM   [ Ignore ]
Newbie
Rank
Total Posts:  7
Joined  2007-07-03

Hi,

I have just installed the Freeform module and am getting the following error when I submit my form:

Warning: mail() [function.mail]: Bad parameters to mail() function, mail not sent. in /home/content/m/l/e/mlevinkind/html/dml131123151213/core/core.email.php on line 1192

Warning: Cannot modify header information - headers already sent by (output started at /home/content/m/l/e/mlevinkind/html/dml131123151213/core/core.email.php:1192) in /home/content/m/l/e/mlevinkind/html/dml131123151213/core/core.functions.php on line 296

I know almost zero php so not sure what my first step to resolving this is. The odd thing is that the entries are being captured on the back end - it is just the front end that is not working as it should. I have downloaded and am running the latest version of Freeform and my code is as follows:

{exp:freeform:form form_name="referral_form" return="referrals/thank-you" notify="me@myemail.com" template="referral_form" required="patient_surname|patient_firstname|referred_dentist_name|referred_email"}
<fieldset>
<
h4>Patient Information</h4>
<
div class="left-form"><label>*Surname</label><br /><input name="patient_surname" type="text" /></div>
<
div class="right-form"><label>*First Name</label><br /><input name="patient_firstname" type="text" /><br /></div>
<
div class="left-form long"><label>Address</label><br /><input name="patient_address_line_1" type="text" /><br />
<
input name="patient_address_line_2" type="text" /><br />
<
input name="patient_address_line_3" type="text" /><br />
<
label>Postcode</label><br /><input name="patient_postcode" type="text" /></div>
<
br />
<
div class="left-form"><label>Telephone</label><br /><input name="patient_telephone" type="text" /></div>
<
div class="right-form"><label>Mobile</label><br /><input name="patient_mobile" type="text" /></div>
<
div class="left-form"><label>Date of birth</label><br /><input name="patient_date_of_birth" type="text" /></div>
</
fieldset>

<
fieldset>
<
h4>Clinical Details</h4>
<
div class="left-form long">
   <
label>Reason for referral</label>
   <
br /><textarea name="clinical_reason_for_referral" cols="" rows=""></textarea></div>
<
div class="left-form long">
   <
label>Medical History</label>
   <
br /><textarea name="clinical_reason_for_referral" cols="" rows=""></textarea></div>
</
fieldset>

<
fieldset>
<
h4>Referred by</h4>
<
div class="left-form long">
   <
label>*Dentist Name</label>
   <
br /><input name="referred_dentist_name" type="text" /><br /></div>
  <
div class="left-form long"><label>Practice Address</label><br /><input name="referred_practice_address_1" type="text" /><br />
<
input name="referred_practice_address_2" type="text" /><br />
<
input name="referred_practice_address_3" type="text" /><br />
<
label>Postcode</label><br /><input name="referred_postcode" type="text" /></div>
<
br />
<
div class="left-form"><label>Telephone</label><br /><input name="referred_telephone" type="text" /></div>
<
div class="right-form"><label>*Email</label><br /><input name="referred_email" type="text" /></div>

</
fieldset>
<
input name="submit" type="submit" value="Submit Referral Form" />

{/exp:freeform:form}

Thanks in advance for any help!

Profile
 
 
Posted: 01 July 2008 11:31 AM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  7
Joined  2007-07-03

Sorry - this seems to only be a problem when I am logged into EE in the same browser. As soon as I log out all is normal… Only problem I can’t sort out now is why I am not getting notified of new postings?

Profile
 
 
Posted: 01 July 2008 02:09 PM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

This sounds like an issue with your email configuration. smile

CP Home › Admin › System Preferences › Email Configuration

Try changing your Mail Protcol (and settings if SMTP).

I would also try sending out an email from the Communicate Tab in the CP, I’m sure the same issue will occur. smile

For more help, I’d advise visiting the ExpressionEngine Forums smile

 Signature 
Profile