Jump to content

Looking: E-Mail Notifier


kjcdude
 Share

Recommended Posts

I'm looking for a good e-mail notifier that i can add to a monitor script i'm working on.

I've seen a few different ones on this forum and was just wondering if anyone could suggest a good one.

Thanks

Well, try them and pick that one you like best. >_<

If you should want to do it yourself from the scratch, well, POP3 is a pretty simple protocol. The full specification is RFC1939, but just the commands

user

pass

list

retr

dele

quit

should do for the start:

you connect to port 110 of the pop3 server.

Any answer starting with + is a success. Any answer starting with - is a fail. You can directly look at what's going on using telnet:

start, run, telnet pop.somewhere.com 110

+OK X1 pop27.somewhere.com
user pop3username
+OK send your password
pass pop3password
+OK maildrop locked and ready
list

If your mailbox is empty, output will look like this:

+OK 0 messages (0 octets)
.

If there are emails, it will list for you what's in your mailbox, numbered with sizes:

+OK
1 3589
2 4702
3 7327
4 15929
5 65004693
6 118451
7 120046
8 16969
.

retr 4

will retrieve the email number 4

dele 5

will delete email number 5 (too large emails don't need to be retrieved that way)

Now look up StringRegExp() in the help file, to check the POP3 server's answer to "list", then do what meets your requirements best :) .

Regards, Rudi.

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...