XML.com: XML From the Inside Out
oreilly.comSafari Bookshelf.Conferences.

advertisement
 Resource Guide -> Perl Implementations, P2P Tutorials, Instant Messaging -> You Have Mail

You Have Mail

Date: Jun. 20, 2001
Link: http://www.openp2p.com/pub/a/p2p/2001/03/09/adams_1.html
Source Author or Organization: D. J. Adams, OpenP2P.com

This tutorial explains how to build an e-mail notification system using Jabber, Perl, the Net::Jabber Perl module and the Mail:Internet Perl module. The Net::Jabber module is used to manipulate mail headers. The Mail:Internet module is used for connecting to the server and sending messages. All Perl code is listed.

As background, the tutorial introduces the Jabber message types "normal" and "chat", and describes the use of Jabber IDs. It then takes the reader step by step through the Perl code for initiating a notification, parsing the incoming email, connecting to the Jabber server, creating a notification message, sending the message to the desired Jabber ID and disconnecting.