uuamwg
Last Updated: April 17, 2016
·
1.308K
· davidmn2
328cfdaf3695c97970e34a3903748f30

Logging in into Gtalk using EXMPP

User = "YourUsername@gmail.com",
Password = "Password",
JID = exmpp_jid:parse(User),
Session = exmpp_session:start({1,0}),
exmpp_session:auth_info(Session, JID, Password),
{ok, _StreamId, _Features} = exmpp_session:connect_TCP(Session,            "talk.l.google.com", 5222, [{starttls, enabled}]),
{ok, _FinalJID} = exmpp_session:login(Session, "PLAIN").
Say Thanks
Respond