Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Email X-From anonymous?


Guest

Recommended Posts

OK...I just looked at ALL the postings found with a search on "anonymous" and found nothing related. I am no email expert but I would like to replace the X-From email address in mail sent from osCommerce with a "real" address. Is this a server issue or configuration issue? Thanks.

Link to comment
Share on other sites

Originally, I misconfigured email addresses and correcting that switched the problem from "X-From" problem to "Return-path" problem. I found a post that suggests modifying includes/function/general.php to add "Return-path:" header in email. Works now.

Link to comment
Share on other sites

To help the others who may have the same problem, you may wish to post the link to the post about modifying the code or state what you added and where.

Link to comment
Share on other sites

I thought it would be easy to find the forum post I located previously but I tried and failed. So...

 

in function tep_mail about line 965

 

change to:

 

$message = new email(array('X-Mailer: osCommerce Mailer','Return-Path: [email protected]'));

 

There must be a way to get the email address from an osCommerce variable but hard coding works too. Please post if you know name of osCOmmerce variables for emails.

 

There is another suggestion somewhere on the forums to change email class instead but it looked a lot messier.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...