Here is my scenario: There is an app, which notificates some users in X days before 'today'.

These users and the number of days are introduced in a configuration zone. Here is the view which list them: ( btw, there can be a bigger number of days, as many as the admin wants )

```
Days | Persons |
______________
30
      Name1
      Name2
      Name3
60
      Name4
      Name5

```

Before this configuration zone was created, I used only a simple formula in an agent ( which is scheduled to run daily) , something like this: ( there were only 30 days fixed - now the user can set in the configuration zone as many days as he wants )

```
@If(@Date(@Adjust(@Date(@Now);0;0;30;0;0;0)) = @Date(final_date)); 
    (@MailSend("Name1":"Name2":"Name3";"";"";"This document expires in 30 days!";"";"";
[IncludeDoclink]) );

```

I know using `@DBLookup` and `@Dbcolumn` I can get the values from the 2 columns in the view. But how can I create as many @MailSend functions depending on the size of the number of days established on the configuration zone? Should I create an array with the length = the 'length' of the `@DbColumn` elements from the 1st column?

Also, it is necessarily to create just one agent ( using multiple @MailSend ) or more than one? If there is any chance, I would like doing this in Formula Language, or, if it is more understandable and simpler, in LotusScript.

Any help will be appreciated. Thanks for your time!