new mail notification in a pop up window

the mail() function

Moderators: egami, macek, gesf

Post Reply
User avatar
php-forum Super User
php-forum Super User
Posts: 1279
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Thu Jul 14, 2005 8:11 pm

you will have to use XMLHTTPRequest which is in javascript.
what it does is basically asynchronously calls a particular page, and then the particular page could be your custom page which returns no. of new emails , their subject etc...
and then using javascirpt you can create an alert on a new window.
and set the whole javascript sequence in a javascript timer set to 1 min. refresh.

This will help you a lot ... tpreq.html

Post Reply