I have the following situation: I connect to the jabber server as USER_1 and need to send a usual message to USER_2 but from any other existing user, ex. USER_111 (but not from me) …
I know this is possible in jabber to modify FROM field to another login… I did this in Jabber::Net perl library … it realy works !
How can I do this in Smack ?
I can’'t specify FROM in sendMessage(). Do I have to use sendPacket() and setFrom() instead ? Can I send a message by creating an instance of Message class and pass it to sendPacket() ???