Doing it automaticallyI've talked before about my BrandNewDay( ) function, and how it gets called once per day. Sending out emails to members unconfirmed for 9 days, and deleting at 10 days is another example of how I use this function. To start with I added another call to BrandNewDay( )... // ============================================
// anything that needs doing once per day!
// ============================================
function BrandNewDay ( )
{
if ( Application ( 'BrandNewDay' ) == 1 )
{
// now set data into Application variables
Application.Lock ( );
Application ( 'BrandNewDay' ) = 0;
Application.Unlock ( );
// send out email or delete unconfirmed members
RemindMembers ( );
}
}
|
...and then I just had to write the function RemindMembers! Part 3: RemindMembers( )... |