no matching function for call to 'EthernetClient::connect(EthernetServer&, int)'

well am trying to send an email with an ethernet shield but this error message comes "no matching function for call to 'EthernetClient::connect(EthernetServer&, int)'" plz help

#include <dht.h>
#include <SPI.h>
#include <Ethernet.h>
dht DHT;

#define DHT11_PIN 3
bool a=0;
bool b=0;
bool c=0;
bool d=0;
bool e=0;
bool elec=0;

byte mac[] = { 0x90, 0xA2, 0xDA, 0x0D, 0x85, 0xD9 };   //physical mac address
byte ip[] = { 192, 168, 1, 185 };                   // ip in lan
byte subnet[] = { 255, 255, 255, 0 };              //subnet mask
byte gateway[] = { 192, 168, 1, 1 };              // default gateway
EthernetServer server(80);//server port

EthernetClient client;

#define HOST     "dc1.oct.local"

#define PORT     2525

int count = 0;
void setup(){
  Serial.begin(9600);
pinMode(3, INPUT);
  Ethernet.begin(mac, ip, gateway, subnet);
 delay(2000);
  Serial.println(F("Ready!"));}

void loop(){
  int chk = DHT.read11(DHT11_PIN);
  Serial.print("Temperature = ");
  Serial.println(DHT.temperature);
  Serial.print("Humidity = ");
  Serial.println(DHT.humidity);
  delay(1000);
  int hum = DHT.humidity ;
  int temp = DHT.temperature ;

  if(temp < 24)
{
  a=1;
}
if(temp > 26)
{
  b=1;
}
if (hum < 40)
{
  c=1;
}
if (hum > 60)
{
  d=1;
}
if (elec=0)
{
  e=1;
}
 if(temp < 24)
  {
    sendEmail();
  }
 else if(temp > 26)
  {
    sendEmail();
  }
 else if (hum < 40)
  {
    sendEmail();
  }
  else if (hum > 60)
  {
    sendEmail();
  }
  else if (elec=0)
  {
    sendEmail();
  }
}
byte sendEmail()
{
  byte thisByte = 0;
  byte respCode;
 
  if(client.connect(server,25) == 1) {
    Serial.println(("connected"));
  } else {
    Serial.println("connection failed");
    return 0;
  }
 
  if(!eRcv()) return 0;
  Serial.println("Sending helo");
 
// change to your public ip
  client.println("helo 1.2.3.4");
 
  if(!eRcv()) return 0;
  Serial.println(F("Sending From");
 
// change to your email address (sender)
  client.println("MAIL From: <humidtemp20@gmail.com>");
 
  if(!eRcv()) return 0;
 
// change to recipient address
  Serial.println("Sending To");
  client.println("RCPT To: <amirzouenkhi@gmail.com>");
 
  if(!eRcv()) return 0;
 
  Serial.println("Sending DATA");
  client.println("DATA");
 
  if(!eRcv()) return 0;
 
  Serial.println("Sending email");
 
// change to recipient address
  client.println("To: You <amirzouenkhi@gmail.com>");
 
// change to your address
  client.println("From: Me <humidtemp20@gmail.com>");
 
  client.println("Subject: Arduino email test\r\n");
 
  client.println("This is from my Arduino!");
 
  client.println(".");
 
  if(!eRcv()) return 0;
 
  Serial.println("Sending QUIT");
  client.println("QUIT");
 
  if(!eRcv()) return 0;
 
  client.stop();
 
  Serial.println("disconnected");
 
  return 1;
}
 
byte eRcv()
{
  byte respCode;
  byte thisByte;
  int loopCount = 0;
 
  while(!client.available()) {
    delay(1);
    loopCount++;
 
    // if nothing received for 10 seconds, timeout
    if(loopCount > 10000) {
      client.stop();
      Serial.println(F("\r\nTimeout"));
      return 0;
    }
  }
 
  respCode = client.peek();
 
  while(client.available())
  {  
    thisByte = client.read();    
    Serial.write(thisByte);
  }
 
  if(respCode >= '4')
  {
    efail();
    return 0;  
  }
 
  return 1;
}
void efail()
{
  byte thisByte = 0;
  int loopCount = 0;
 
  client.println(F("QUIT"));
 
  while(!client.available()) {
    delay(1);
    loopCount++;
 
    // if nothing received for 10 seconds, timeout
    if(loopCount > 10000) {
      client.stop();
      Serial.println(F("\r\nTimeout"));
      return;
    }
  }
 
  while(client.available())
  {  
    thisByte = client.read();    
    Serial.write(thisByte);
  }
 
  client.stop();
 
  Serial.println(("disconnected"));
}
}

any help guys????

What is it supposed to do? If it is old email code, the functions in the libraries may have been changed or updated.