wallsingham78 Posted June 8, 2022 Share Posted June 8, 2022 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.