hi ppl,i used the following codes to send msg...
it works fine for nokia(msg receiver)...but not able to receive thru sony erricson...wat modification i have to do....pl. its really urgent
mess_con=(MessageConnection)Connector.open("sms://:5000");
txt=(TextMessage)mess_con.newMessage(MessageConnection.TEXT_MESSAGE);
String str="sms://"+"9952293822";
txt.setAddress(str);
txt.setPayloadText(getmessage);
Thread thread=new Thread()
{
public void run()
{
try{
mess_con.send(txt);
mess_con.close();
}
catch(Exception e)
{
}
}
};
thread.start();
}
catch(Exception ex)
{
}
}
nolia to sony ericcson inbox....
is is some prob with port no?

Reply With Quote


