savescot Posted July 26, 2004 Posted July 26, 2004 Warning: mail(): SMTP server response: 501 5.5.4 Invalid Address in D:\Websites\saveourscots\includes\classes\email.php on line 502 Warning: Cannot modify header information - headers already sent by (output started at D:\Websites\saveourscots\includes\classes\email.php:502) in D:\Websites\saveourscots\includes\functions\general.php on line 29 HELLPPPPPPPPP - what do they mean? regards Jeff
webjocky Posted August 5, 2004 Posted August 5, 2004 I've got the same problem! Please help us! :rolleyes:
superlopez47 Posted August 10, 2004 Posted August 10, 2004 Hello, On catalog/includes/classes/email.php , on line 499: " if (EMAIL_TRANSPORT == 'smtp') { return mail($to_addr, $subject, $this->output, 'From: ' . $from . $this->lf . 'To: ' . $to . $this->lf . implode($this->lf, $this->headers) . $this->lf . implode($this->lf, $xtra_headers)); " } It would execute that line, but (I don't know what), OsCommerce execute the "else" condition: "else { return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers)); } } Then, you've to replace "return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers));" for "return mail($to_addr, $subject, $this->output, 'From: ' . $from . $this->lf . 'To: ' . $to . $this->lf . implode($this->lf, $this->headers) . $this->lf . implode($this->lf, $xtra_headers)); " And voil?.... If you want a good php editor, visit www.vim.org Good luck. Gussy.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.