> Ray Newman > > Not being an expert in PIC18 series chips or tcp/ip protocol, > is it possible to receive email (subject line only) then > delete on server? > > I need to send and receive email. > Using off site (not on lan) pop3 and smtp servers both send > and receive need only to use subject line POP3 is fairly simple, I've done similar to what you're asking, just not on a PIC. Use telnet to have a play initially. There's only half a dozen commands to remember; USER, PASS, LIST, TOP, DELE & QUIT. There's a few more but not all servers use them. The server sends back a string starting with either +OK or -ERR. (Maybe it's just + & -). After any data, you get a line with a single period (.) to show your it's finished. So: telnet mail.webserver.com 110 The mail server responds with +OK Then login: USER name PASS password You don't need to wait for the +OK after USER, but you might as well. You'll get back a +OK for each anyway. LIST gives you each undeleted message, showing the message number plus its size. 1 4355 2 5633 3 6535 4 567657 5 6755 . To get the header, use TOP <#lines>, so TOP 3 1 gives you the first line (the header) of message 3, followed by the . line. This "line" could be a screenful of data. You need to pick out 'Subject:' in the middle of it. DELE 3 deletes the message. You need to log off (QUIT) to make this actually happen, otherwise the messages come back next time you log on. You've probably noticed that if your PC crashes halfway thru receieving mail, you get them all again. If you issue a LIST again, message 3 won't show up. That's pretty much it. You're on your own for the TCP/IP on a PIC side though! Tony -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist