Help with @mainsend

I need help with this.

Here is what I want the button to do when the user clicks on it:

  1. Save the document.

  2. Send an email to 3 three people, then bcc the other 2 people.

  3. Lastly, a message should pop up saying the document has been saved and emails have been sent to the following people ( It should show thelist ). Click ok.


@Command([FileSave]);

subject:=“New Request - Test Database”;

body:="A New document has been entered into the Test Database. It requires your attention. Click on this link to view → ";

@If(location = “certaincity”;@MailSend(“user1”:“user2”:“user3”;“bcccuser4”;“bccuser5”;“”;“”;subject;“”;body;[IncludeDoclink); “”);

list:=@Unique(“user1”:“user2”:“user3”;“bccuser4”:“bccuser5”);

@Prompt([ok];@DbTitle;“Thank You! Your new document has been saved and mail notifications have been sent to : " + @Implode(list;”,") )


Subject: two revisions …

Change your mailsend function to this:@MailSend(“user1”:“user2”:“user3”;“”; “bcccuser4”:“bccuser5”;“”;subject;body;“”;[IncludeDoclink)

The way you had it, your bcc’s were in the place for cc’s, you had an extra semi-colon, and your body variable was in the slot reserved for document fields to include.

Also change the semi-colon in your @Unique to a colon.

Subject: RE: two revisions …

Ok, here it is, correct?

@Command([FileSave]);

subject:=“New Request - Test Database”;

body:="A New document has been entered into the Test Database. It requires your attention. Click on this link to view → ";

@If(location = “certaincity”;@MailSend(“user1”:“user2”:“user3”;“”; “bcccuser4”:“bccuser5”;“”;subject;body;“”;[IncludeDoclink)

list:=@Unique(“user1”:“user2”:“user3”:“bccuser4”:“bccuser5”);

@Prompt([ok];@DbTitle;“Thank You! Your new document has been saved and mail notifications have been sent to : " + @Implode(list;”,") )