What's Here?
- Members: 131,943
- Replies: 470,217
- Topics: 72,879
- Snippets: 2,538
- Tutorials: 664
- Total Online: 1,893
- Members: 73
- Guests: 1,820
Who's Online?
|
This code will open a socket and allow you to access anything on your email server. This snippet is based off the tutorial on gotoandlearn.com with a few changes, but if you are having trouble implementing it I would highly recommend you watch the full tutorial.
|
Submitted By: Kerplope
|
|
|
Rating:
|
|
Views: 95 |
Language: ActionScript
|
|
Last Modified: October 8, 2008 |
|
Instructions: You will need to edit the data to match you email password and incoming mail server. |
Snippet
//defines a connection between the mail server and your computer
var yourSocket:Socket = new Socket("incoming_mail_server", 110);
yoursocket.addEventListener(ProgressEvent.SOCKET_DATA,openSocketConnection);
function openSocketConnection(evt:ProgressEvent):void {
//Writes your email and password in a unicode format that the pop3 server can read .
s.writeUTFBytes("emailaddress\n");
s.writeUTFBytes("password\n");
s.writeUTFBytes("STAT\n");
//Sends the data written in UTFBytes through the socket connection
s.flush();
//At this point you should consult a pop3 reference guide to preform functions on the server.
}
Copy & Paste
|
|
|
Programming
Web Development
Reference Sheets
Bye Bye Ads
Free DIC T-Shirt
Related Sites
Monthly Drawing
Partners
Top Contributors
Top 10 Kudos This Month
|