How to get the entire list and send mail to everyone

Hi i had posted before my query i’ll try to make little clear over here.I have to list boxes in which the name list is there user can mulitple selects the name by using ctrl and click on the add the entire list will move to the next list box .

what i want the name which appears in the list box would appear in the next form dialog list that when i click on submit button the entire people will get the mail .

is it any method that can fetch the data from list box to dialog list and from there everyone got mails.

(Ps.; whats actual happening that whatever be the name in dialog list at that time i can select only one people at a time and click on submit button whose name selected he’ll recieve a confirmation mail , i just want this mail should spread to list of users )

Might be this time i am able to clear what i want.

Thank you

Subject: how to get the entire list and send mail to everyone

Create a button and copy this into the click event, does this in principle do what you want?

thenames := @PickList( [Name] );

okmail := @Prompt( [YesNo];“Mail to”;“Do you want to send an e-mail to the following people?” + @char(13) + @Implode(@Name([CN];thenames);@Char(13)));

@If(okmail = 1;@MailSend(thenames;“”;“”;“This is a test”;“”;“Testing”);“”)