hpqnet Posted December 15, 2003 Posted December 15, 2003 Hi, All the email that is sent from my OSC site, has the correct from name and address listed, however within the header the return-path is not correct. The header return-path seems to be the real host name and not my virtual host name. With this being set the mail is bounced back to my provider instead of my site. Can anyone help me with this? Some how I need to set the <Return-Path> to be the same as my From Address... Thanks. :o
Guest Posted December 15, 2003 Posted December 15, 2003 Did you set your store contact e-mail address under admin>configuration>mystore... Regards Richard :D
hpqnet Posted December 15, 2003 Author Posted December 15, 2003 Yes under admin>configuration>I have the email address set to the correct email, and the email from set to the correct email address. The from part of the email works fine, its just the <return-path> part of the email header that is not being set. I just cant locate where it is.
Guest Posted December 15, 2003 Posted December 15, 2003 It is a process, so you will need to look at the e-mailing process, not sure which file of the top of my head. It could be the way your server is set up though, OSC uses the send mail script. You should be able to work round this though by editing the e-mail process. Regards Rich :D
Guest Posted December 15, 2003 Posted December 15, 2003 The email headers are mostly assembled in includes/classes/email.php. Note: it would be reasonable to set the Return-Path to the same address as is used in the From header. Hth, Matt
hpqnet Posted December 15, 2003 Author Posted December 15, 2003 Okay, so how do you set the return-path to be the same as the from. I want the return-path to be the same as the from address. Anyone know about where in the email.php file to make the change? Of course my isp says its an application issue and not a apache configuration issue.
Guest Posted December 15, 2003 Posted December 15, 2003 what do you see in your maillog file when you send an email? also your other server logs should tell you something. setup a global catch all for incoming email, so nothing is rejected and see if it shows up there.
hpqnet Posted December 15, 2003 Author Posted December 15, 2003 The catch all will not work. The return path is set to the actual physical server name and not my virtual domain name so therefore the catch all never gets the bounced mail. This is only an issue when users setup an invalid email, and its bouncing on our host. for example: <Return-Path>[email protected] ... ... ... .. .. .. From: [email protected] ... ...
hpqnet Posted December 16, 2003 Author Posted December 16, 2003 Actually the email.php program is missing an important part to the mail statement. It is missing the Reply-To: within the mail statement, which causes problems with bouncing mail. Within includes/classes/email.php 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 . '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 . 'From: '.$from.$this ->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers));
Recommended Posts
Archived
This topic is now archived and is closed to further replies.