Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

E- mail problems, apparently


Guest

Recommended Posts

Greetings folks -

 

I appear to have a strange bug and I'm not sure where it is coming from.

It happens upon account creation, and even after payment via paypal and

clicking on the return to site button. It appears to have something

to do with sending mail from oscommerce.

 

I've done some searches, but the most recent replies were back in 2007

and no answers were given. It may have something to do with the hosting

server's php.ini file or the e-mail gateway not accepting e-mail requests

as user "nobody" from oscommerce:

 

"Warning: mail() [function.mail]: SMTP server response: 550 <<[email protected]> No such user here in E:\inetpub\vhosts\3guyscoffee.com\httpdocs\includes\classes\email.php on line 502

 

Warning: Cannot modify header information - headers already sent by (output started at E:\inetpub\vhosts\3guyscoffee.com\httpdocs\includes\classes\email.php:502) in E:\inetpub\vhosts\3guyscoffee.com\httpdocs\includes\functions\general.php on line 29"

 

This looks to me like a nasty error that might be difficult to run down

and fix.

 

line 502 in email.php is:

 

" return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers));

"

 

This section is unmodified, and appears stock.

 

Line 29 in general.php is:

 

" header('Location: ' . $url);

 

and here it is in the entire section:

 

"// Redirect to another page or site

function tep_redirect($url) {

if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page

if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url

$url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL

}

}

 

header('Location: ' . $url);

 

tep_exit();

}

"

 

 

 

Any help/direction is much, much appreciated!

Link to comment
Share on other sites

The "cannot modify header information" is a consequence of the error before it (error message sending text to the screen). It will go away when the first error is fixed, so don't worry about it: http://www.oscommerce.com/forums/topic/350012-error-in-all-page-submits/page__gopid__1467801entry1467801

 

As for the email error, what exactly does the email address look like? This is to "to" address that it's complaining about? From the response "No such user here", it sounds like either it doesn't like something about the "from" address, or it's misreading the "to" address as a local user, or the user is local but the address is malformed, or... Do you have a "people name" mixed in with the email address, something like John Main <[email protected]>? I see unbalanced <> around the address in the error message -- is that real?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...