HiI use this to mail everyone who has the db open. It’s look if there are any new memo, if there is a new memo the mail sends.
Problem is that if there are say 3 new memos it’s send 3 copys of the mail.
Is there anyway to just send one reminder to each person each time.
Kind regards
David
server := “”;
database := “”;
view := “(CheckActiveUser)”;
key := “Active”;
columnNumber := 2;
Choise := @DbLookup( “Notes” : “NoCache” ; server : database ; view ; key ; columnNumber);
sendTo:= @If(@IsError(Choise);“”;@Trim(@Unique(Choise)));
copyTo:=“”;
blindCopyTo:=“”;
subject:=@GetProfileField( “KeyWords”; “NotifySubject” );
remark:=“”;
bodyFields:=@GetProfileField( “KeyWords”; “NotifyMessage” );
@If(form=“Memo” & Mother!=“Child” & Status=“1”;@Do(
@MailSend( sendTo ; copyTo ; blindCopyTo ; subject ; remark ; bodyFields));“”);
SELECT @All