Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

No sender email is shown when the contact form is used


talmazor

Recommended Posts

Posted

When someone goes to my site and submits an enquiry via the contact us form, the email is sent but in the sender field it lists my email address not the sender's email address. This makes it impossible for me to respond to any of the emails.

 

Has anyone had this problem, or know how to fix it?

Thanks.

Posted

I checked some other areas of the site and the email is only broken on the contact page.

 

If you send an email through the admin or an email is generated from an order, the email is sent and structured correctly.

 

But if you send an email through the contact page, the "From" field shows my server info not the information entered in the "email" field of the form.

 

Help, please.

  • 2 months later...
Posted
When someone goes to my site and submits an enquiry via the contact us form, the email is sent but in the sender field it lists my email address not the sender's email address. This makes it impossible for me to respond to any of the emails.

 

Has anyone had this problem, or know how to fix it?

Thanks.

 

 

We are having the same problem and I cannot find any solutions in the forum. Please help!

  • 3 months later...
Posted
bump , I got the same problem too!!

 

post the line from your catalog/contact_us.php where it starts with

 

tep_mail(.....

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

  • 2 weeks later...
Posted
post the line from your catalog/contact_us.php where it starts with

 

tep_mail(.....

 

I am having the same problem. Here is the code:

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

  • 4 weeks later...
Posted

:( Still looking for help on this, my site hasnt been modified much, I belive a stock site might have the same problem.

 

 

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

Posted

Andy, yes your file is stock, but as stock sites do not have your problem, it must be something else.

 

What does an email header you get sent look like?

 

What do other email headers look like (test send an email to a customer account created for yourself from admin)?

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Posted

I solved the problem by updating general.php

 

$message = new email(array('X-Mailer: OsCommerce Mailer'));

 

to:

$message = new email(array('X-Mailer: OsCommerce Mailer','Return-Path: ' . $from_email_address));

 

Only certain email client had this problem. (the mail headers had a correct from and an incorrect repy to, depending on the mail client you use you reply to either from or reply to)

  • 1 month later...
Posted

Found a very simple fix for this issue. Only had to modify one line in catalog/contact_us.php.

 

Look for the line that says:

 

tep_mail($name, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry);

 

and change it to:

 

tep_mail($name, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address);

 

Works like a charm now!!

Add-Ons personally installed:

Step by Step Manual Order -- Request Reviews -- Reviews in Product Listing -- Reviews in Product Display -- Review Approval System -- Leverage Browser Cache --
Header Tag Controller -- Multilayer SEO Pop Out Menu -- Follow Us Box -- View All Products -- USPS Shipping Labels -- UPS Shipping Labels -- Monthly Sales/Tax Report --
htacess Optimisation -- Remove Unused Images -- Master Password -- Admin Change Customer Password -- Database Backup Manager -- Zero Stock Report --
Searchbox Search In Descriptions -- Easy Populate 2.76i -- Barcode Rendering -- Admin Sort By Model -- Products Purchased Report

Add-Ons personally developed:

Search for email address, etc in Orders -- Discontinue Product

Add-Ons installed by others:

View Counter -- Site Monitor -- Image Thumbnailer -- Database Optimizer -- Recaptcha -- Discount Coupons -- Add More Fields

Posted
Found a very simple fix for this issue. Only had to modify one line in catalog/contact_us.php.

 

Look for the line that says:

 

tep_mail($name, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry);

 

and change it to:

 

tep_mail($name, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address);

 

Works like a charm now!!

Kevin, I'm almost too scared to ask what version you are on ... as we all have that line you changed to as a standard for a very long time now... if you scroll up you can see the other posters have it also.

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Posted
Kevin, I'm almost too scared to ask what version you are on ... as we all have that line you changed to as a standard for a very long time now... if you scroll up you can see the other posters have it also.

 

2.2-MS2

 

Don't know what to tell you. The last two variables weren't there and we had (what I thought was) the same problem as is being reported here. I added them and it works like a charm now. Perhaps that line was modded as part of a contribution you/they have installed? It's never worked for us until I made that change. We did add some enhancements to the contact_us page so our address and phone number would display but the return email address was always blank even before that...

Add-Ons personally installed:

Step by Step Manual Order -- Request Reviews -- Reviews in Product Listing -- Reviews in Product Display -- Review Approval System -- Leverage Browser Cache --
Header Tag Controller -- Multilayer SEO Pop Out Menu -- Follow Us Box -- View All Products -- USPS Shipping Labels -- UPS Shipping Labels -- Monthly Sales/Tax Report --
htacess Optimisation -- Remove Unused Images -- Master Password -- Admin Change Customer Password -- Database Backup Manager -- Zero Stock Report --
Searchbox Search In Descriptions -- Easy Populate 2.76i -- Barcode Rendering -- Admin Sort By Model -- Products Purchased Report

Add-Ons personally developed:

Search for email address, etc in Orders -- Discontinue Product

Add-Ons installed by others:

View Counter -- Site Monitor -- Image Thumbnailer -- Database Optimizer -- Recaptcha -- Discount Coupons -- Add More Fields

Posted

nope, we have the dafualt version, and yours was not vanilla. I hope this is the only file and found and fixed ;-)

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Archived

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

×
×
  • Create New...