corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Javascript POP3 email checker, desktop background to tell you when you have email


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Javascript POP3 email checker, desktop background to tell you when you have email
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
21st Jul 08 at 11:00   View Garage View User's Profile U2U Member Reply With Quote

I want the above basically, but need some help with this.

I want a line or box or area on a active desktop background so that when a user logs in it uses their username and password for AD (which is the same as their email u/n and p/w) to check if they have any emails in their inbox. Then use that text as a link to open up in IE the email log on page (just a webmail page from out ISP).

Possible?

If so, how?

Thanks in advance peoplesssssssss
Whittie
Member

Registered: 11th Aug 06
Location: North Wales Drives: BMW, Corsa & Fiat
User status: Offline
21st Jul 08 at 11:02   View User's Profile U2U Member Reply With Quote

I'm pretty sure there's a widget for it... i'll let you klnow
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
21st Jul 08 at 11:04   View Garage View User's Profile U2U Member Reply With Quote

Umm, the machines are running XPP. But i'll be interested to see
ed
Member

Registered: 10th Sep 03
User status: Offline
21st Jul 08 at 13:38   View User's Profile U2U Member Reply With Quote

Would be reletively simple. Would need to use a bit of PHP or whatever you use to talk to the POP3 server to get the data you need along with a bit of Javascript and/or HTML to get it to display the way you want it to.
Dom
Member

Registered: 13th Sep 03
User status: Offline
21st Jul 08 at 15:25   View User's Profile U2U Member Reply With Quote

It's not as simple as it looks, the POP3 side is fairly straight forward but it's getting the user details that's tricky. Client side script (javascript) to get the user details and then parse that to a PHP to do the pop3 processing. Problem is, you can only retrieve the logged in Username and NOT the password.
You could get them to log in once as you can authorise to AD using PHP (look up PHP LDAP_ etc) and then store a cookie with the details but security could be an issue here.

Personally, i wouldn't bother or if you have to, download pop3 checker software that sits in the sysbar and checks a pop3 account.
ed
Member

Registered: 10th Sep 03
User status: Offline
21st Jul 08 at 17:08   View User's Profile U2U Member Reply With Quote

Think you could do it using ASP? Not too clued up on that, but I thought you could get an ASP page to log in using your Windows username and password with the built in authentication you get on an MS server.

[Edited on 21-07-2008 by ed]
Dom
Member

Registered: 13th Sep 03
User status: Offline
21st Jul 08 at 21:14   View User's Profile U2U Member Reply With Quote

PHP and ASP will both authenticate with an AD server, but the user would have to enter in logon details - it isn't possible (not to my knowledge) of getting the logged on users password (like i say you can get the logged on username using javascript, well using activeX) to make the process of logging on to the pop3 (pow said the mail accounts use the same usr/pwd's as the AD) server and retrieving the number of new emails automated.

like i say, the only way of it doing it is to get the user to enter the details and then store these details in a cookie so it can be automated there after.

But it's a lot of work just to get the number of new emails on the desktop.
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
22nd Jul 08 at 20:28   View Garage View User's Profile U2U Member Reply With Quote

OK this is a touch OTT for me, an easy way of doing it?

Could get the users to log on, then get a promt to check their emails? But I would prefer the seemless way of doing it?
Dan Lewis
Member

Registered: 31st Jan 05
Location: Leicestershire
User status: Offline
22nd Jul 08 at 20:36   View User's Profile U2U Member Reply With Quote

what pop3 server is it?

cant you use outlook?
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
22nd Jul 08 at 20:49   View Garage View User's Profile U2U Member Reply With Quote

Nope, not going to use/cant use Outlook.
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
22nd Jul 08 at 20:51   View Garage View User's Profile U2U Member Reply With Quote

Nope, not going to use/cant use Outlook.
Dom
Member

Registered: 13th Sep 03
User status: Offline
23rd Jul 08 at 10:41   View User's Profile U2U Member Reply With Quote

Like i say you can get widgets that sit in your sys-status bar that check a pop3 server for new mail etc - but it means setting it up manually for every machine/user.

Just tell them to check it more often or use an email client - apart that everything else is a ballache
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
23rd Jul 08 at 11:34   View Garage View User's Profile U2U Member Reply With Quote

ed
Member

Registered: 10th Sep 03
User status: Offline
23rd Jul 08 at 14:45   View User's Profile U2U Member Reply With Quote

Do your users use different computers all the time? If you really wanted it, you could have them log in to the notification script, store the credentials in some cookies (so long as you can store the password in an encrypted format) so that whenever they log into that computer the notification script will always be logged in.

Though that wouldn't work if you have it setup to delete all cookies on logout, and it would be a bit inconvenient if your users logged into different computers all the time......
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
23rd Jul 08 at 17:37   View Garage View User's Profile U2U Member Reply With Quote

Yeah, its a school so they use different ones all of the time

Sounds like this is going to be a no go
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
24th Jul 08 at 10:52   View Garage View User's Profile U2U Member Reply With Quote

Hang on, how does that above email notification system work?
Dan Lewis
Member

Registered: 31st Jan 05
Location: Leicestershire
User status: Offline
24th Jul 08 at 11:01   View User's Profile U2U Member Reply With Quote

what email system is it?
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
24th Jul 08 at 15:19   View Garage View User's Profile U2U Member Reply With Quote

The CS one.
Dom
Member

Registered: 13th Sep 03
User status: Offline
24th Jul 08 at 17:33   View User's Profile U2U Member Reply With Quote

quote:
Originally posted by pow
Hang on, how does that above email notification system work?


authenticates with the POP3 server using your login details - but in your situation that isn't the problem (that's the piece easy bit).
Problem you have is that you can't get the logged on users password (so you could automate the process of logging into the pop3 server and retrieving the email count), unless you had them log into the computer system and the display a login box on the desktop to log into the "email checker".

Like said you could store this in a cookie, but you probably delete those when a user logs out, plus security could be an issue etc.
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
25th Jul 08 at 13:28   View Garage View User's Profile U2U Member Reply With Quote

I could store their username and password in their "home areas", its' not sensitive email, just notices etc. In a textfile?

[Edited on 25-07-2008 by pow]
ed
Member

Registered: 10th Sep 03
User status: Offline
25th Jul 08 at 13:31   View User's Profile U2U Member Reply With Quote

You could indeed do that, possibly with a bit of basic encryption too. As thier home folder is password protected anyway it ought to be safe.

But it still is a bit of a security risk...
Dom
Member

Registered: 13th Sep 03
User status: Offline
25th Jul 08 at 16:25   View User's Profile U2U Member Reply With Quote

yeah you could do that, but you would need to use Javascript to read the local file (look at fopen) and then parse that to a php to deal with the pop3 stuff. Could also authenticate the stored details against the AD as a security measure and encrypt the local file (using blowfish, or similar, and use a key thats built around the logged on username - ie: if someone managed to copy the secret file they would have to physically log in as that user to for it to work).

Again, security issues may be a problem but aslong as things are encryted then it should be ok.

Oh, for the php Pop3 side of things, look into Sessions for storing the username and password and Sockets for communicating with the pop3 server. Javascript wise, fopen for reading the local file and google 'Javascript logged on username' or something. You use the WScript activeX component.

Any problems then give us a shout

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
nokia 7650 Corsa93 Geek Day 21 1382
8th Jun 03 at 02:50
by Richie
 
@corsasport.co.uk Email Noonster General Chat 5 141
31st Oct 03 at 16:18
by Noonster19
 
Free pop3 email? Melville Geek Day 12 191
10th Jul 06 at 13:02
by Ian
 
POP 3 e-mail Andrew Geek Day 2 581
21st Dec 06 at 18:27
by liamC
 
Can you use an email domain name in Outlook? Whittie Geek Day 12 754
12th Feb 08 at 06:55
by Dom
 

Corsa Sport » Message Board » Off Day » Geek Day » Javascript POP3 email checker, desktop background to tell you when you have email 29 database queries in 0.0167282 seconds