LDD Today

Tips from LDD

The birthday reminder agent


Tip submitted by
Silvio Savaresi

Level: Intermediate
Works with: Notes/Domino
Updated: 01-Jul-2003

Do you usually forget friends' and colleagues' birthdays? With a simple agent, your Notes client can remind you of upcoming birthdays. This agent, placed in your Personal Address Book (PAB), can send you an email with the contact's name and a document link to his or her page in your PAB. The Birthday agent is a scheduled LotusScript agent that runs daily in your PAB to notify you of birthdays that occur the following day.

Here is the agent code. You can also download the code from the Sandbox.

Sub Initialize
'Summary : Code for sending mail to oneself about colleagues'/friends' birthdays
'This agent checks for tomorrow's birthdays and composes a mail message with a link and
'works automatically if the agent is enabled

'This agent works on the People view used in Notes
'You can create a Birthday view to display all colleagues'/friends' birthdays

'declaration Err_Att: End Sub

NOTE: The bold lines of code differ from the code provided in the Sandbox sample.

You can modify or enhance this agent and install it on a corporate Directory Catalog or on a common client address book.


SUBMIT YOUR TIPS!
We encourage you to send us your tips (You can also click the "Would you like to submit a tip?" graphic below.) Your tips can be anything you've discovered about any Lotus product. The most important thing is that your tip be interesting, useful, or handy. And be sure to include complete information about how your tip works. For ideas, take a look at our tip archives. If we publish your tip, we'll send you the IBM Redbooks Lotus Collection on CD.