Hello,need help with the code below. understand that mailsend function is only workable with edit mode. what i miss out in this code. can someone expert to advise? Thanks.
it is able to send the mail however theres no doclink attach in the mail content.
FIELD Status := “Rejected”;
FIELD CAApproval := "Rejected by Manager";
FIELD CADate := @Today;
FIELD CAName := @Name([CN] ; @UserName);
@MailSend(Originator ; “” ; “”; ": Test Form rejected " + FormNo ;
"Test Send Doc Link. --------> ";[IncludeDoclink]);
@Command([FileSave]);
@Command([CloseWindow])
Subject: mail send unable to include doc link
The syntax is @MailSend( sendTo ; copyTo ; blindCopyTo ; subject ; remark ; bodyFields ; [ flags ] )
You have not put the bodyFields argument in your code, instead you put [IncludeDocLink] in it’s place, in the sixth position.
This should work:
@MailSend(Originator;;;": Test Form rejected " + FormNo;"Test Send Doc Link. --------> ";;[IncludeDoclink])
You could also use this class:
http://blog.texasswede.com/lotusscript-mail-notification-class/
Use the AppendDocLink method to create a doclink to the current document.
Subject: RE: mail send unable to include doc link
+_+ great!.. its work now. Thanks very much