Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

error sending emails, in compatibility.php


sclifford

Recommended Posts

Posted

Hi,

 

i have installed oscommerce on a windows host, and installed patch 1.5.

 

i am gettingthe following error when i try sending emails from the contact page....

 

Warning: Variable passed to each() is not an array or object in E:\domains\u\uklockpickers.co.uk\user\htdocs\oscommerce\catalog\includes\functions\compatibility.php on line 170

 

166 if (!function_exists('checkdnsrr')) {
167	function checkdnsrr($host, $type) {
168	  if(tep_not_null($host) && tep_not_null($type)) {
169		@exec("nslookup -type=$type $host", $output);
170		while(list($k, $line) = each($output)) {
171		  if(eregi("^$host", $line)) {
172			return true;
173		  }
174		}
175	  }
176	  return false;
177	}
178  }

 

 

Have i not got something installed correctly when applying the patch?

 

 

thx in advance.

 

s.c

Posted

With a windows box you need to set your mail to SMTP not sendmail.

There are contirbutions for SMTP if the defualt does not work

Reagrds

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted

where do i set my smtp server details....ive changed my setting to SMTP, but cant find no mention of server details being entered...???

Archived

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

×
×
  • Create New...