Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help! SMTP Errors when "Confirm Order" is pressed


grwd

Recommended Posts

Posted

When I press the Confirm Order button I receive the following errors:

 

Errors:

Warning: Failed to Connect in C:phpWebcatalogcatalogcatalogincludesclassesemail.php on line 500

Warning: Cannot add header information - headers already sent by (output started at C:phpWebcatalogcatalogcatalogincludesclassesemail.php:500) in C:phpWebcatalogcatalogcatalogincludesfunctionsgeneral.php on line 23

 

Email.php

Lines 499 - 503

 

499 if (EMAIL_TRANSPORT == 'smtp') {

500 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));

501 } else {

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

503 }

 

In configuration I have SMTP selected - BUT - I am not sure exactly what that is other than it has something to do with email.

I don't think I have any kind of email software on the server. Is it built in to osCommerce? Or do I need to install some kind of software?

 

:?:What's causing these errors and how do I fix them!

Thank you,

Tim

Posted

Assuming from your paths that you are hosting this on localhost ? If so, then you most likely do not have an SMTP server installed, so it won't work and you'll get the errors...

 

Install it on a live host and all will be fine, or install an SMTP server, eg postcastserver (search on google) and then amend php.ini and httpd.conf to reflect this.

Posted

I have a question. I am running into the same error.

 

The Question: I have Bellsouth DSL service, and my home network is always connected. Can't I just use the BellSouth SMTP server? mail.atl.belllsouth.net

 

And if so, why am I still getting that error?

 

If not, how come?

 

Thanks,

Chris

Chris Sullivan

Posted

Hey! Sorry, that didn't work. I am now getting the same error, just with a different line number. This is the error:

 

Warning: Failed to connect to mailserver, verify your "SMTP" setting in php.ini in C:Inetpubwwwrootcatalogincludesclassesemail.php on line 506

 

Warning: Cannot add header information - headers already sent by (output started at C:Inetpubwwwrootcatalogincludesclassesemail.php:506) in C:Inetpubwwwrootcatalogincludesfunctionsgeneral.php on line 23

 

For some reason I get the same error, revolving around the same line everytime:

 

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

 

Thanks for your help,

Chris

 

P.S. How is you SMTP set up in your c:windowsphp.ini file?

Chris Sullivan

Posted

I'm running windows 2K with SMTP active so here's the excerpt from my php.ini file:

 

[mail function]

; For Win32 only.

SMTP = localhost

 

; For Win32 only.

sendmail_from = [email protected]

 

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").

;sendmail_path =

Archived

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

×
×
  • Create New...