Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Contact Us recieve no e-mail


Guest

Recommended Posts

Posted

OK, guys i've trolled thru all the forums and no suggestions have worked...basically the issue I'm having seems pretty common....

off of the contacts page, when a customer fills out the form and submits it, we do not receive the e-mail/enquiry.

 

We & the customers are receiving all other e-mails just fine, it's only this one.

 

yes my, e-mails are set up correctly in admin, i've tried all kids of variations in the "e-mail option" admin. I even tried to install the smtp authorize add-on with no success....

 

my webhost is yahoo if that helps....

 

please someone out there has to have the true fix to this problem.

Posted

OK, guys i've trolled thru all the forums and no suggestions have worked...basically the issue I'm having seems pretty common....

off of the contacts page, when a customer fills out the form and submits it, we do not receive the e-mail/enquiry.

 

We & the customers are receiving all other e-mails just fine, it's only this one.

 

yes my, e-mails are set up correctly in admin, i've tried all kids of variations in the "e-mail option" admin. I even tried to install the smtp authorize add-on with no success....

 

my webhost is yahoo if that helps....

 

please someone out there has to have the true fix to this problem.

Would you settle for a "band-aid" instead of a "fix"?

:unsure:

 

In the /catalog/contact_us.php you could try changing this code:

 

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

To:

 

        if (tep_validate_email($email_address)) {
         $enquiry = 'From: ' . $name . "\n" . 'Email Address: ' . $email_address . "\n" . $enquiry;
         tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

BACKUP BEFORE MAKING ANY EDITS.

 

What this does is make the email "from" you and "to" you (@STORE_OWNER_EMAIL_ADDRESS), but it concatenates the senders name and email addy to the body of the email.

 

In lieu of a solution, all I can offer is a "jury rig"....

:blush:

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

you (the OP) have made it sound complicated. theres two things thats relevant:

 

1. your email server (on your hosting account) is working;

2. your STORE_OWNER_EMAIL_ADDRESS in contact_us.php is correct ie has actually been set up and entered in admin - configuration - store;

you can test it by using an email address that you know is working (could be a free email address such as gmail), to replace STORE_OWNER_EMAIL_ADDRESS so it looks like '[email protected]'.

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Posted

Thanks guys for getting back to me...a little update, i tried to send a e-mail out from the "customers" section and those are not working either...so it looks like any outgoing e-mail is not working except Order Confirmation e-mail right after the customer checks out. i've tried both send mail and smtp options

 

Germ,

i've pasted/replaced that code in earlier today, i tried one more time with yours and all it does is make my contact us page go blank once it's changed.

 

GemRock.

1)yes my e-mail server is working, been getting e-mails all day from outside OSC.

2)yes the correct e-mail is entered via the admin set up. i tried a free e-mail and one from another domain & host I also own and it still does not work.

Posted

Thanks guys for getting back to me...a little update, i tried to send a e-mail out from the "customers" section and those are not working either...so it looks like any outgoing e-mail is not working except Order Confirmation e-mail right after the customer checks out. i've tried both send mail and smtp options

 

Germ,

i've pasted/replaced that code in earlier today, i tried one more time with yours and all it does is make my contact us page go blank once it's changed.

 

GemRock.

1)yes my e-mail server is working, been getting e-mails all day from outside OSC.

2)yes the correct e-mail is entered via the admin set up. i tried a free e-mail and one from another domain & host I also own and it still does not work.

Not that it makes a lot of difference, but my code is rock solid.

 

I've tested it.

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

if this helps: Here's my contact_us.php page:

 

 

<?php

/*

$Id: contact_us.php,v 1.42 2003/06/12 12:17:07 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

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']);

$phone = tep_db_prepare_input($HTTP_POST_VARS['phone']); // add phone 21.6.09

$email_body = EMAIL_TEXT_CUSTOMER_NAME . ' ' . $name . "\r\n" . EMAIL_TEXT_CUSTOMER_EMAIL . ' ' . $email_address . "\r\n" . EMAIL_TEXT_CUSTOMER_PHONE . ' ' . $phone . "\r\n" . EMAIL_TEXT_CUSTOMER_MESSAGE . ' ' . $enquiry;

 

$from_email = (STORE_OWNER_EMAIL_ADDRESS);

 

if (tep_validate_email($email_address)) {

tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $email_body, $name, $from_email);

 

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 HTML 4.01 Transitional//EN">

<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="stylesheet.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 //-->

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td class="col_left">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

</td>

<!-- body_text //-->

<td width="100%" class="col_center"><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

 

<tr><td>

 

<? tep_draw_heading_top();?>

 

<? new contentBoxHeading_ProdNew($info_box_contents);?>

 

<? tep_draw_heading_top_1();?>

 

<table cellpadding="0" cellspacing="0" border="0" width="100%">

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></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 class="main" align="center"><?php echo tep_image(DIR_WS_IMAGES . 'success_thumbs_up.gif', HEADING_TITLE, '0', '0', 'align="left"') . TEXT_SUCCESS; ?></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="2" class="infoBox">

<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>

<?php

} else {

?>

<table cellpadding="0" cellspacing="0" border="0" width="100%">

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td><table border="0" width="100%" cellspacing="5" cellpadding="2">

 

<tr>

<td class="main"><?php echo CONTACT_PAGE_TEXT; ?></td>

</tr>

 

<tr>

 

</tr>

<tr>

 

</tr>

<tr>

 

</tr>

<tr>

 

 

<tr>

 

</tr>

<tr>

 

</tr>

</tr>

<tr>

 

</tr>

<tr>

 

</tr>

</table>

<table cellpadding="0" cellspacing="0" border="0" width="100%">

<tr><td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td></tr>

</table>

<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 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>

<table cellpadding="0" cellspacing="0" border="0" width="100%">

<tr><td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td></tr>

</table>

</td>

</tr>

</table></td>

</tr>

</table>

 

 

<?php

}

?>

 

 

<?php tep_draw_heading_bottom_1();?>

 

<?php tep_draw_heading_bottom();?>

 

</td></tr>

</table>

</form></td>

 

<!-- body_text_eof //-->

<td class="col_right">

<!-- right_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

<!-- right_navigation_eof //-->

</td>

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //--></body>

</html>

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

Archived

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

×
×
  • Create New...