Subject: message never reach destination user
Some time ago, I posted because I need to send messages to users from a service. The project was idle until now. So I am testing the library usage, using version 0.4.
I devised a very simple windows form app, ( to enter server, sender name and pass, destination name and body ).
All seems to run fine, but the message never arrives to destinee.
The relevant code is as follows
What may be wrong ?
How can I check the results from every relevant step ( Open( ), Send( ) )
Of course, both users are in the server ( they can chat interactively ), and the password for the sender is OK.
I'm using TIMP.NET as a server.
TIA
Marcelo
A
I devised a very simple windows form app, ( to enter server, sender name and pass, destination name and body ).
All seems to run fine, but the message never arrives to destinee.
The relevant code is as follows
XmppClientConnection _connection = new XmppClientConnection( );
agsXMPP.Jid jidMe = new agsXMPP.Jid( txtSender.Text + "@" + txtServer.Text );
_connection.Server = jidMe.Server;
_connection.Username = jidMe.User;
_connection.Password = txtPass.Text;
_connection.Resource = "ultramini";
_connection.Priority = 10;
_connection.Port = 5222;
_connection.Open( );
string dest = txtTo.Text + "@" + txtServer.Text;
agsXMPP.Jid jidTo = new agsXMPP.Jid( dest );
agsXMPP.protocol.client.Message mess = new agsXMPP.protocol.client.Message( );
mess.From = jidMe;
mess.To = jidTo;
mess.Body = txtMess.Text;
_connection.Send( mess );
_connection.Close( );
I captured the xml text from the message, as followsagsXMPP.Jid jidMe = new agsXMPP.Jid( txtSender.Text + "@" + txtServer.Text );
_connection.Server = jidMe.Server;
_connection.Username = jidMe.User;
_connection.Password = txtPass.Text;
_connection.Resource = "ultramini";
_connection.Priority = 10;
_connection.Port = 5222;
_connection.Open( );
string dest = txtTo.Text + "@" + txtServer.Text;
agsXMPP.Jid jidTo = new agsXMPP.Jid( dest );
agsXMPP.protocol.client.Message mess = new agsXMPP.protocol.client.Message( );
mess.From = jidMe;
mess.To = jidTo;
mess.Body = txtMess.Text;
_connection.Send( mess );
_connection.Close( );
note the extra quotes, it comes from debugging"<message xmlns="jabber:client" from="marcelo@develop" to="administrator@develop"><body>mess...</body></message>"
What may be wrong ?
How can I check the results from every relevant step ( Open( ), Send( ) )
Of course, both users are in the server ( they can chat interactively ), and the password for the sender is OK.
I'm using TIMP.NET as a server.
TIA
Marcelo
A