KKR - 2007-11-21

Hi,

I not recieving mails but i m getting the message Mail Sent. Please anyone tell wht is missing my code. Here is my code:-

public static void main(String[] args)
    {
        try
        {
            GMConnector connector = new GMConnector();
            connector.setUser("userId");
            connector.setPasswd("password");
          
            System.out.println("object is created");
            connector.connect();
          
            boolean i;
            
            i = connector.isConnected();
            if(i)
            {
                System.out.println("connection is created"); 
            }
            else
            {
                System.out.println("connection failed");
            }
                       
            GMSendMailBody body = new GMSendMailBody();
            body.setMsgbody("body");
            body.setSubject("subject");
            body.addTo("addr_to");
            connector.send(body);
        }
        catch(Exception e)
        { 
            e.printStackTrace(); 
        }
    }

Thanks