Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sign in to follow this  
wallsingham78

Adding Reply-To: and Return-Path: within the mail statement(Email header), which causes problems with bouncing mail.

Recommended Posts

Im Thread: https://forums.oscommerce.com/topic/70265-wrong-return-path-in-email-header/

wird eine Lössung gezeigt die bei mir nicht ganz geholfen hat. Es wird dort nur der Reply-To: und nicht der Return-Path: ergänzt. Untenstehend daher die Lösung die bei mir zumindest funktioniert.

Adding  Reply-To: and Return-Path: within the mail statement, which causes problems with bouncing mail.

 

Within includes/classes/email.php (in admin AND catalog path)

 

The line that reads:

 

if (EMAIL_TRANSPORT == 'smtp') {

return mail($to_addr, $subject, $this->output, 'From: ' . $fro

m . $this->lf . 'To: ' . $to . $this->lf . implode($this->lf, $this->headers) . $this->lf . implode($this

->lf, $xtra_headers));

} else {

return mail($to, $subject, $this->output, 'From: '.$from.$this

->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers));

 

Should read......

 

if (EMAIL_TRANSPORT == 'smtp') {

return mail($to_addr, $subject, $this->output, 'Reply-To: ' . $from . $this->lf . 'Return-Path: ' . $from . $this->lf . 'From: ' . $fro

m . $this->lf . 'To: ' . $to . $this->lf . implode($this->lf, $this->headers) . $this->lf . implode($this

->lf, $xtra_headers));

} else {

return mail($to, $subject, $this->output, 'Reply-To: ' . $from . $this->lf . 'Return-Path: ' . $from . $this->lf . 'From: '.$from.$this

->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers));

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×