Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

OSCOMM and smtp


Guest

Recommended Posts

Hi all does anybody know if oscommerce overide the php.ini file regarding the smtp port.

 

im have trouble using oscom to send mails from the site, our server support say:

 

OSCommerce forms are still insisting on using the SMTP service on port 25 - this must be hardcoded somewhere in the OSCommerce scripts, I've had a look but couldn't see where.

 

If you have support with OSCommerce I'd advise you ask them why the php.ini SMTP server setting is being overridden, failing that it may be worth checking the OSCommerce forums for more info.

 

any help would be appriciated

Cheers Craig

Link to comment
Share on other sites

Looking at the code oscommerce doesnt override any smtp settings it just uses the defaults from the php.ini

 

      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));
     } else {
       return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers));
     }

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...