Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


wallsingham78
 Share

Recommended Posts

Im Thread: https://www.oscommerce.com/forums/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));

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...