<div>thanks for helping guys!</div>
<div>i solved the problem, if anyone needs it, here is a code example:</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp; public void addContact()<br>&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Roster roster = connection.getRoster();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Presence subscribe = new Presence(Presence.Type.SUBSCRIBE);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; subscribe.setTo(&quot;<a href="mailto:myfriend\\40hotmail.com@msn.myServer.org">
myfriend\\40hotmail.com@msn.myServer.org</a>&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; subscribe.setFrom(connection.getUser());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; connection.sendPacket(subscribe);<br>&nbsp;&nbsp;&nbsp; }</div>