Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

dont think the "send email" on contact.php is working?


Iniquityclothing

Recommended Posts

Posted

Hi folks please take a look at my store. on my "contact" page after you fill in the "name, email, message" and click send nothing happens?? im not recieving the emails? its a template install so maybe i have to re-define the email parameters somewhere? but where??

any pointers would be a great help!

Thanks :thumbsup:

 

my site here

View recent 'helpfull' threads:

 

403 Error problems | Ultimate SEO (contribution support)

  • 2 months later...
Posted
i have searched everywhere to find the answer for this but no luck if anyone knows even what direction i should be looking in that would be a huge help!

 

 

did you get this figured out? mine doesnt work either!

I am a Jedi, like my father before me!

Posted

You did put the correct email address in the admin section/my store/e-mail address & e-mail from correct?

 

Also go into admin section/configuration/e-mail options and make sure that your transport method is correct and send e-mails is set to true.

Posted
Hi folks please take a look at my store. on my "contact" page after you fill in the "name, email, message" and click send nothing happens?? im not recieving the emails? its a template install so maybe i have to re-define the email parameters somewhere? but where??

any pointers would be a great help!

Thanks :thumbsup:

 

my site here

My "Contact us" page does not send the email either, and the page has not been edited and is from a fresh install, we can however send email to customers fine, seems the problem is with the contact page with me.

Posted
did you get this figured out? mine doesnt work either!

 

 

Yes the email information is correct and so are the settings.

 

I tried to use tellafriend, and that doesnt work. Its the original install. Any thoughts?

I am a Jedi, like my father before me!

  • 4 weeks later...
Posted
Yes the email information is correct and so are the settings.

 

I tried to use tellafriend, and that doesnt work. Its the original install. Any thoughts?

I still have not got this to work, I am with Yahoo hosting, anyone think that is a problem?

  • 5 months later...
Posted

Does anyone have a fix for this problem? I've been searching the forums for an hour, and so far this is the only thread I have found on the subject.

 

Basically, the problem is that when you go to the contact page and fill out the form, nothing happens when you click the button to send the info. It doesn't appear that any attempt is even made to be sent. Maybe there is a missing form element or something.

 

To answer the previous posts, yes, my email address in admin is correct and Send E-Mails is set to true. The problem is not with receiving the emails. The problem is just that the form isn't sending at all.

 

Here is the contents of catalog/contact_us.php:

 

<?php

 require('includes/application_top.php');

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US);

 $error = false;
 if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) {
$name = tep_db_prepare_input($HTTP_POST_VARS['name']);
$email_address = tep_db_prepare_input($HTTP_POST_VARS['email']);
$enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']);

if (tep_validate_email($email_address)) {
  tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address);

  tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success'));
} else {
  $error = true;

  $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
}
 }

 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_US));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->

<tr>
<td width="182" align="left" valign="top">
<table width="182" cellpadding="0" cellspacing="0" border="0">
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
</table>
</td>
<td width="509" valign="top" style="padding-left:2px;">

	<table border="0" cellpadding="0" cellspacing="0" width="100%">
		<tr>
						<td width="100%" height="100%" valign="top" bgcolor="#FFFFFF">

							<table border="0" width="100%" cellpadding="0" cellspacing="0" >
								<tr>
								<td width="100%" height="25" valign="top">
											<table width="100%" border="0" cellpadding="0" cellspacing="0" height="24">
	<tr>
		<td><img src="images/left_header.gif" width="4" height="24" alt="" /></td>
		<td width="100%" style="background-image:url(images/header_bg.gif); text-align:left; color:#FFF; padding-left:5px; font-size:110%; font-weight:bold "><?php
										echo HEADING_TITLE; ?>   
											</td>
		<td><img src="images/right_header.gif" width="4" height="24" alt="" /></td>			
	</tr>
</table>
	   											</td>
								</tr>

								<tr>
								<td valign="top" height="409" style="padding:0px 5px; " class="infoBox">
								<table border="0" cellpadding="0" cellspacing="0" width="100%">





	 <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '1'); ?></td>
  </tr>
<?php
 if ($messageStack->size('contact') > 0) {
?>
  <tr>
	<td><?php echo $messageStack->output('contact'); ?></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
<?php
 }

 if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) {
?>

  <tr>
	  <td>
	<table border="0" width="100%" cellspacing="0" cellpadding="0" >
  <tr>
	<td class="main" align="center"><?php echo TEXT_SUCCESS; ?></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td align="left"><table border="0" width="100%" cellspacing="1" cellpadding="2" >
	  <tr class="infoBoxContents">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
  </table></td></tr>
<?php
 } else {
?>

  <tr>
	<td align="left" ><table border="0" width="100%" cellspacing="1" cellpadding="2">
	  <tr class="infoBoxContents">

		<td width="100%" style="padding:5px; "><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td class="main" ><?php echo ENTRY_NAME; ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo tep_draw_input_field('name'); ?></td>
		  </tr>
		  <tr>
			<td class="main" ><?php echo ENTRY_EMAIL; ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo tep_draw_input_field('email'); ?></td>
		  </tr>
		  <tr>
			<td class="main" ><?php echo ENTRY_ENQUIRY; ?></td>
		  </tr>
		  <tr>
			<td align="left" style="padding-left:3px; "><?php echo tep_draw_textarea_field('enquiry', 'soft', 30, 7); ?></td>
		  </tr>
		</table></td>
	  </tr>
	  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td colspan="2"><table border="0" width="100%" cellspacing="1" cellpadding="2" >
	  <tr class="infoBoxContents">
		<td align="left"><table border="0" width="180" cellspacing="0" cellpadding="2">
		  <tr>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			<td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
   <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
		<td colspan="2" height="1" background="images/hpoint.gif" align="left"><img src="images/hpoint.gif" width="3" height="1" alt=""></td>
</tr>
<tr>
		<td colspan="2" height="1" background="images/hpoint.gif" align="left" style="margin-top:2px;"><img src="images/hpoint.gif" width="3" height="1" alt=""></td>
</tr>
<tr>
	<td colspan="2" align="left">
	<Table border="0" cellpadding="0" cellspacing="0" >
	<tr align="left">
	<td width="50%" style="padding-left:20px;"><br/><span style="font-weight:bold;">Phone:</span> 1-800-555-55-55<br>
<br/>
<span style="font-weight:bold;">Fax:</span> 1-800-555-55-55</td>
	<td width="50%" style="padding-left:20px;"> 

<br/><span style="font-weight:bold;">E-mail:</span> [email protected]<br>
<br/>
<span style="font-weight:bold;">Toll Free:</span> 1-800-555-55-55</td>
	</tr></table></td>
</tr>
	</table></td>
  </tr>

<?php
 }
?>
</table></td></tr>  </table></td>
								</form>














					</tr>


				</table>
			</td>
		</tr>




<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->


</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

 

Here is the contents of my languages>english>contact_us.php

 

<?php
define('HEADING_TITLE', 'Contact Us');
define('NAVBAR_TITLE', 'Contact Us');
define('TEXT_SUCCESS', 'Your enquiry has been successfully sent to the Store Owner.');
define('EMAIL_SUBJECT', 'Enquiry from ' . STORE_NAME);

define('ENTRY_NAME', 'Full Name:');
define('ENTRY_EMAIL', 'E-Mail Address:');
define('ENTRY_ENQUIRY', 'Enquiry:');
?>

Posted

You could try the stock osc page and see if that works.

Posted
You could try the stock osc page and see if that works.

 

Now the form works, but my header and footer are so out of whack that the whole page is screwy. I'll have to try to compare the two files line by line to see if I can merge them into something that works for me.

Posted

The original has this line:

 

	<?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?>

Your's seems to be missing.

 

I think it should go just above this line:

 

	<td width="509" valign="top" style="padding-left:2px;">

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

:sweating:

 

:lol:

 

:thumbsup:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...