Forums

Send Email is not working

pragya 05 Feb, 2008
Hi!!!

Pls help me regarding chronoforms i have developed two forms using this extension as i am new to joomla and to website designing i have been facing some issues regarding the form.
here is the simple HTML code which i have generated :
<form 
  name='candidates' 
  action='submission ' 
  method='POST' 
  enctype='multipart/form-data' 
  onsubmit='return verifyMe();'  
  action="mailto:«»pragya.shukla@imarketingadvantage.com">
<table class='table_form_1' id='table_form_1' cellspacing='0'>
	<tr>
		<td class='ftbl_row_1' >
<LABEL for='name' ACCESSKEY='none' >
<b style='color:red'>*</b>Name
		</td>
		<td class='ftbl_row_1a' >
<input type='text' name='name' id='name' size='45' maxlength='70'  value=''>
		</td>
	</tr>
	<tr>
		<td class='ftbl_row_2' >
<LABEL for='domain' ACCESSKEY='none' >
<b style='color:red'>*</b>Domain specialisation 
		</td>
		<td class='ftbl_row_2a' >
<select name='domain' id='domain'>
			<option value='Finance'>Finance</option>
			<option value=' HR'> HR</option>
			<option value=' Sales & Marketing '> Sales </option>
                        <option value=' Consulting '>  Consulting </option>
                        <option value=' Research '>  Research </option>
                        <option value=' IT '>  IT </option>
                        <option value=' Others '>  Others </option>
		</select>
		</td>
	</tr>
	<tr>
		<td class='ftbl_row_1' >
<LABEL for='exp' ACCESSKEY='none' >
<b style='color:red'>*</b>Years of exp
		</td>
		<td class='ftbl_row_1a' >
<input type='text' name='exp' id='exp' size='45' maxlength='10'  value=''>
		</td>
	</tr>
	<tr>
		<td class='ftbl_row_2' >
<LABEL for='clocation' ACCESSKEY='none' >
<b style='color:red'>*</b>current location
		</td>
		<td class='ftbl_row_2a' >
<input type='text' name='clocation' id='clocation' size='45' maxlength='50'  value=''>
		</td>
	</tr>
	<tr>
		<td class='ftbl_row_1' >
<LABEL for='plocation' ACCESSKEY='none' >
<b style='color:red'>*</b>Preferred location
		</td>
		<td class='ftbl_row_1a' >
<input type='text' name='plocation' id='plocation' size='45' maxlength='50'  value=''>
		</td>
	</tr>
	<tr>
		<td class='ftbl_row_2' >
<LABEL for='ccompany' ACCESSKEY='none' ><b style='color:red'>*</b>Current company
		</td>
		<td class='ftbl_row_2a' >
<input type='text' name='ccompany' id='ccompany' size='45' maxlength='50'  value=''>
		</td>
	</tr>
	<tr>
		<td class='ftbl_row_1' >
<LABEL for='tel' ACCESSKEY='none' ><b style='color:red'>*</b>Contact no
		</td>
		<td class='ftbl_row_1a' >
<input type='text' name='tel' id='tel' size='45' maxlength='12'  value=''>
		</td>
	</tr>
	<tr>
		<td class='ftbl_row_2' >
<LABEL for='email' ACCESSKEY='none' ><b style='color:red'>*</b>Email id
		</td>
		<td class='ftbl_row_2a' >
<input type='text' name='email' id='email' size='45' maxlength='50'  value=''>
		</td>
	</tr>
	<tr>
		<td class='ftbl_row_1' >
<LABEL for='resume' ACCESSKEY='none' >
<b style='color:red'>*</b>Upload C.V 
		</td>
		<td class='ftbl_row_1a' >
<input type='file' name='resume' id='resume' size='50' value=''>
		</td>
	</tr>
	<tr>
		<td colspan='2' align='right'>
<input type='submit' name='submit' value='Submit'> 
<input type='reset' name='reset' value='Reset'><br />
		</td>
	</tr>
</table>
</form>
and a i have added the required java script function too in it.

here is the code for it :

function verifyMe(){
var msg='';

if(document.getElementById('name').value==''){
	msg+='- Name\n\n';}

if(document.getElementById('domain').value==''){
	msg+='- Domain specialisation \n\n';}

if(document.getElementById('exp').value==''){
	msg+='- Years of exp\n\n';}

if(document.getElementById('clocation').value==''){
	msg+='- current location\n\n';}

if(document.getElementById('plocation').value==''){
	msg+='- Preferred location\n\n';}

if(document.getElementById('ccompany').value==''){
	msg+='- Current company\n\n';}

if(document.getElementById('tel').value==''){
	msg+='- Contact no\n\n';}

var email=document.getElementById('email').value;
if(!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email))){
msg+='- Invalid Email Address: '+email+'\n\n';}

if(document.getElementById('email').value==''){
	msg+='- Email id\n\n';}

if(document.getElementById('resume').value==''){
	msg+='- Upload C.V \n\n';}

if(msg!=''){
	alert('The following fields are empty or invalid:\n\n'+msg);
	return false
}else{
	return true }

}
but i am not able to receive the emails on the specified email add i hv tried al the possible settings but couldn't trace out the reason. Pls pls give you valuable feedback regarding it and help me to resolve the issue.

I have seen all the previous postings and cross checked the setting too but not able to fix it.

I am using joomla version :1.0.12
add: http://www.helix-hr.com
page add where i am using form is here

Pls find enclosed herewith screen shot for the settings which i have been using under general tab.

Thanks & Regards
Pragya

Edited to add tags and to break up long lines.<br><br>Post edited by: GreyHead, at: 2008/02/05 16:06
GreyHead 05 Feb, 2008
Hi Pragya,

The first thing to do is to remove the <form> tags; ChronoForms creates it own form tags. Also the tags here have two 'action' attribute and the 'mailto' one means that ChronoForms will never see the submitted form.

Bob
pragya 05 Feb, 2008
Hi !!!

Thanks for your immediate reply.

I have modified the code i m getting the confirmation but still im not able to receive the email :
<table class='table_form_1' id='table_form_1' cellspacing='0'>
	<tr>
		<td class='ftbl_row_1' ><LABEL for='name' ACCESSKEY='none' ><b style='color:red'>*</b>Name
		</td>
		<td class='ftbl_row_1a' ><input type='text' name='name' id='name' size='45' maxlength='70'  value=''>
		</td>
	</tr>
	<tr>
		<td class='ftbl_row_2' ><LABEL for='domain' ACCESSKEY='none' ><b style='color:red'>*</b>Domain specialisation 
		</td>
		<td class='ftbl_row_2a' ><select name='domain' id='domain'>
			<option value='Finance'>Finance</option>
			<option value=' HR'> HR</option>
			<option value=' Sales & Marketing '> Sales </option>
                        <option value=' Consulting '>  Consulting </option>
                        <option value=' Research '>  Research </option>
                        <option value=' IT '>  IT </option>
                        <option value=' Others '>  Others </option>
		</select>
		</td>
	</tr>
	<tr>
		<td class='ftbl_row_1' ><LABEL for='exp' ACCESSKEY='none' ><b style='color:red'>*</b>Years of exp
		</td>
		<td class='ftbl_row_1a' ><input type='text' name='exp' id='exp' size='45' maxlength='10'  value=''>
		</td>
	</tr>
	<tr>
		<td class='ftbl_row_2' ><LABEL for='clocation' ACCESSKEY='none' ><b style='color:red'>*</b>current location
		</td>
		<td class='ftbl_row_2a' ><input type='text' name='clocation' id='clocation' size='45' maxlength='50'  value=''>
		</td>
	</tr>
	<tr>
		<td class='ftbl_row_1' ><LABEL for='plocation' ACCESSKEY='none' ><b style='color:red'>*</b>Preferred location
		</td>
		<td class='ftbl_row_1a' ><input type='text' name='plocation' id='plocation' size='45' maxlength='50'  value=''>
		</td>
	</tr>
	<tr>
		<td class='ftbl_row_2' ><LABEL for='ccompany' ACCESSKEY='none' ><b style='color:red'>*</b>Current company
		</td>
		<td class='ftbl_row_2a' ><input type='text' name='ccompany' id='ccompany' size='45' maxlength='50'  value=''>
		</td>
	</tr>
	<tr>
		<td class='ftbl_row_1' ><LABEL for='tel' ACCESSKEY='none' ><b style='color:red'>*</b>Contact no
		</td>
		<td class='ftbl_row_1a' ><input type='text' name='tel' id='tel' size='45' maxlength='12'  value=''>
		</td>
	</tr>
	<tr>
		<td class='ftbl_row_2' ><LABEL for='email' ACCESSKEY='none' ><b style='color:red'>*</b>Email id
		</td>
		<td class='ftbl_row_2a' ><input type='text' name='email' id='email' size='45' maxlength='50'  value=''>
		</td>
	</tr>
	<tr>
		<td class='ftbl_row_1' ><LABEL for='resume' ACCESSKEY='none' ><b style='color:red'>*</b>Upload C.V 
		</td>
		<td class='ftbl_row_1a' ><input type='file' name='resume' id='resume' size='50' value=''>
		</td>
	</tr>
	<tr>
		<td colspan='2' align='right'><input type='submit' name='submit' value='Submit'> <input type='reset' name='reset' value='Reset'><br />
		</td>
	</tr>
</table>
pls have a look on the code once and cross check it if i hv done it correctly or not.

This is link pls pls visit it once may be it can help u to trace the problem.

Edited to add tags.<br><br>Post edited by: GreyHead, at: 2008/02/05 18:33
GreyHead 05 Feb, 2008
Hi pragya,

Please check this in two steps:

1) Please comment out the <tr> with the file upload in it and check that the form works OK. If it does, then go on to step 2. If not, then please check this FAQ and fix the Javscript error in the Employers menu tab.

2) Now put the <tr> back in the form html; and check this FAQ to add the 'enctype' to your form.

Hopefully something will have fixed the problem!!🙂

Bob
pragya 06 Feb, 2008
Hi!!!

I have done thing as per your feedback but i am not able to receive emails even now i guess something is wrong with my code.

Please have a look on it once:
java script code i put under second tab "Form JavaScript:
(without the script tags)"
<script language='javascript'>
function verifyMe(){
var msg='';

if(document.getElementById('name').value==''){
	msg+='- Name\n\n';}

if(document.getElementById('domain').value==''){
	msg+='- Domain specialisation \n\n';}

if(document.getElementById('exp').value==''){
	msg+='- Years of exp\n\n';}

if(document.getElementById('clocation').value==''){
	msg+='- Current location\n\n';}

if(document.getElementById('plocation').value==''){
	msg+='- Preferred location,\n\n';}

if(document.getElementById('ccompany').value==''){
	msg+='- Current company,\n\n';}

if(document.getElementById('tel').value==''){
	msg+='- Contact no\n\n';}

if(document.getElementById('eid').value==''){
	msg+='- Email id\n\n';}

if(document.getElementById('resume').value==''){
	msg+='- Upload C.V\n\n';}

if(msg!=''){
	alert('The following fields are empty or invalid:\n\n'+msg);
	return false
}else{
	return true }

}
</script>
This code under : "may contain PHP code with tags"
<table id='table_form_1' cellspacing='0'>
	<tr>
		<td><LABEL for='name' ACCESSKEY='none' ><b style='color:red'>*</b>Name
		</td>
		<td><input type='text' name='name' id='name' size='45' maxlength='20'  value=''>
		</td>
	</tr>
	<tr>
		<td><LABEL for='domain' ACCESSKEY='none' ><b style='color:red'>*</b>Domain specialisation 
		</td>
		<td><select name='domain' id='domain'>
			<option value='Finance'>Finance</option>
			<option value=' HR'> HR</option>
			<option value=' Sales '> Sales </option>
		</select>
		</td>
	</tr>
	<tr>
		<td><LABEL for='exp' ACCESSKEY='none' ><b style='color:red'>*</b>Years of exp
		</td>
		<td><input type='text' name='exp' id='exp' size='45' maxlength='20'  value=''>
		</td>
	</tr>
	<tr>
		<td><LABEL for='clocation' ACCESSKEY='none' ><b style='color:red'>*</b>Current location
		</td>
		<td><input type='text' name='clocation' id='clocation' size='45' maxlength='20'  value=''>
		</td>
	</tr>
	<tr>
		<td><LABEL for='plocation' ACCESSKEY='none' ><b style='color:red'>*</b>Preferred location,
		</td>
		<td><input type='text' name='plocation' id='plocation' size='45' maxlength='20'  value=''>
		</td>
	</tr>
	<tr>
		<td><LABEL for='ccompany' ACCESSKEY='none' ><b style='color:red'>*</b>Current company,
		</td>
		<td><input type='text' name='ccompany' id='ccompany' size='45' maxlength='20'  value=''>
		</td>
	</tr>
	<tr>
		<td><LABEL for='tel' ACCESSKEY='none' ><b style='color:red'>*</b>Contact no
		</td>
		<td><input type='text' name='tel' id='tel' size='45' maxlength='20'  value=''>
		</td>
	</tr>
	<tr>
		<td><LABEL for='eid' ACCESSKEY='none' ><b style='color:red'>*</b>Email id
		</td>
		<td><input type='text' name='eid' id='eid' size='45' maxlength='20'  value=''>
		</td>
	</tr>
	<tr>
		<td><LABEL for='resume' ACCESSKEY='none' ><b style='color:red'>*</b>Upload C.V
		</td>
		<td ><input type='file' name='resume' id='resume' size='45' value=''>
		</td>
	</tr>
	<tr>
		<td colspan='2' align='right'>
<input type='submit' name='submit' value='Submit'> 
<input type='reset' name='reset' value='Reset'>
		</td>
	</tr>
</table>



and as u said i put this code under general tab "Form tag attachment:"
enctype='multipart/form-data' onsubmit='return verifyMe();'
but still of no use. I have tested ur sample form as well and it was working fine and i was getting a mail in my mail box.

Please suggest something regarding it i have been trying it for last one week still no luck. Take out some of ur valuable time and help me on this issue.
Thanks and regards
Prgya

Edited to add code tags (and removed the Form Generics link!).<br><br>Post edited by: GreyHead, at: 2008/02/06 12:37
GreyHead 06 Feb, 2008
Hi prgya,

Please fix the Javascript error in the Employers menu item. Without that your verification is broken I think. (Also the ChronoForms JavaScript should be "without script tags".

What happens when you try the form without the file upload (see my previous post)?

Bob
pragya 06 Feb, 2008
Hi !!!

Which Employer tab u r talking abt i am not getting it i hv made two forms using the extension :

one is under EMPLOYERS and SECOND IS UNDER CANDIDATE

i am not receiving emails from both the forms so what i ahve tried i tried ur sample form i was getting notification for it.

I tried sending article from default joomla functionality it ws working.

I changed the code ( without java script it is howing that it is sending email but actually i am not getting any email)

i have deleted that uploading file option as well but same result ( no emails ). So any other suggestion for me.

here is the code (HTML only without java script)

<table width="400" border="0">
<tr>
<td>Name</td>
<td><input name="name" type="text" size="30" maxlength="30"></td>
</tr>
<tr>
<td>E-mail Address </td>
<td><input name="email" type="text" size="30" maxlength="30"></td>
</tr>
<tr>
<td>Contact Number</td>
<td><input name="tel" type="text" id="tel" size="30" maxlength="30"></td>
</tr>
<tr>
<td>Current Location</td>
<td><input name="clocation" type="text" id="clocation" size="30" maxlength="30"></td>
</tr>
<tr>
<td>Preferred Location</td>
<td><input name="plocation" type="text" id="plocation" size="30" maxlength="30"></td>
</tr>

<tr>
<td>Current Company</td>
<td><input name="ccompany" type="text" id="ccompany" size="30" maxlength="30"></td>
</tr>

<tr>
<td>Years Of Exp </td>
<td><input name="exp" type="text" id="exp" size="10" maxlength="30"></td>
</tr>
<tr>
<td>Domain Specialization</td>
<td><select name="Domain Specialization" id="domain">
<option value="Finance">Finance </option>
<option value="HR">HR </option>
<option value="Sales & Marketing">Sales & Marketing </option>
<option value="Consulting">Consulting </option>
<option value=" Research"> Research </option>
<option value="IT">IT </option>
<option value="Strategy">Strategy </option>
<option value="Others">Others </option>
</select></td>
</tr>


<tr>
<td> </td>
<td><input type="submit" name="submit" value="Submit"></td>
</tr>
</table>
pragya 06 Feb, 2008
I have again changed the code this time i have doen the following things:

code:

Name: <input name="name" value="" type="text"><br />
E-mail: <input name="email" value="" type="text"><br />
<input name="submit" value="Submit" type="submit">

without <script > and <form> tags

[email]pragya.shukla@helix-hr.com[/email] under general tab
sub:test2

[email]jyotika.dhawan@helix-hr.com[/email] under general tab as from email
jyotika:from name

under special field:

[email]pragya.shukla@ihelix-hr.com[/email] under Email field

test2 as subject

[email]jyotika.dhawan@helix-hr.com[/email] as From email field

jyotika as from name

and tested it again email was not sent and i am getting wrong information in the debug report :

From: []
To: [email]pragya.shukla@helix-hr.com[/email],
Subject:
name pragya
email [email]pragyashukla@yahoo.com[/email]
submit Submit





So what i have done wrong and do i need to use special fields its usage is not clear to me.

Thanks & Regards
Pragya
GreyHead 06 Feb, 2008
Hi Pragya,

The "Special fields" tab takes field names from your form. To use fixed email addresses like "jyotika.dhawan@helix-hr.com" you must put them in the General Tab.

Bob

PS The Javascript error is in the Top Menu, nothing to do with ChronoForms.
pragya 06 Feb, 2008
Hi!!!

I have revert back the changes:

i have two links now :http://helix-hr.com/index.php?option=com_chronocontact&task=send&chronoformname=test

which is using the sample form (available on your site) and I am getting email through this form

second link is :
http://helix-hr.com/index.php?option=com_chronocontact&chronoformname=candidate2

which is using my code it is giving all the details correctly after submission and shows that it sent out the email but i am not receiving it what could be the possible reason for it and as you have said about java script error i guess u r using IE6 thats why it is giving that error.

Pls suggest something for this issue i will be waiting for your reply.
Thanks & Regards
Pragya<br><br>Post edited by: GreyHead, at: 2008/02/06 16:05
GreyHead 06 Feb, 2008
Hi Pragya,

If it says 'Email sent' then check your junk mail filters and folders; the email is being lost somewhere after being sent from your site.

Bob

PS No IE6 here - Using Firefox 3 Beta 2 with Firebug and the Javascript error is showing up as a broken url for the Employers menu item.
GreyHead 06 Feb, 2008
Hi Pragya,

0) Javascript is still showing an error:
unterminated string literal
tmenu48.addItem("Employers", "http://helix-hr.com/ index.php?option=com_chronoc...
2) There can be a problem with uploads if you don't have $mosConfig_fileperms set in your config file. See this pos for more info.

3)IIRC when the upload is successful you can see a link to the CV from show data. If not, there are some posts here that talk about different ways of showing file info.

Bob

1) The work domain name has a space in it which is not permitted
<select name="Domain Specialization" id="domain">
This topic is locked and no more replies can be posted.