Hello designers!..
I have peoblem in @mailsend, Hope you guys help me in this.
I have assigned username to feild
FIELD app := User1
FIELD app_1 := User2
Now i want send mails to both User’s or one of the user depend upon some condition.
I have used following code, but it is not working
@MailSend(@Unique(app_1 | app);“”; “”; “Need Approval”; “This Procedure has been Approved by the Local Manager & need your approval.”; “”; [IncludeDoclink]));
Please help me in this code.
Thanks
Vj
Subject: @mailsend - send mail to more than 1 user
One uses a colon (
to glue two lists together, not a pipe (|).
Subject: RE: @mailsend - send mail to more than 1 user
Its helped me, but when i want to mail only one user i.e.
FIELD app := Username
FIELD app_1:=“”
then i will get error ("No ‘send to’ feild in document. Use forward on the action menu instead)
what i have to do to supress this error. Please help
Thanks
Vj
Subject: RE: @mailsend - send mail to more than 1 user
If you’re hard coding things, it should be:
FIELD app := @Username
FIELD app_1:=“”
Unless you have a variable caledd UserName.
it would probably be a good idea to add:
@if( @Trim(@Unique( app : app_1))<>“”; @MailSend(…); @Return(“”) );
If you have lots of fields and want to reference the list of several times you might also want do create a local variable to hold things to make it easier to maintain your code:
FIELD app := User1
FIELD app_1 := User2
mailTo := @Trim(@Unique(app : app_1));
@if( mailTo <> “”;
@MailSend( mailTo; ""; ""; "Need Approval"; "This Procedure has been Approved by the Local Manager & need your approval."; ""; [IncludeDoclink]));
@Return("")
);
Subject: RE: @mailsend - send mail to more than 1 user
Thanks a lot !.. Stephen.
You explained me, what i want.
it worked.
Once again thanks a lot.
Vj
Subject: RE: @mailsend - send mail to more than 1 user
thanks Stan