为什么用下面的代码发送邮件发送一个是没有问题,改送二个邮件地址列表就显示不成功了呢?

傻乐tao 2002-01-10 10:56:36
Sub Postopen(Source As Notesuidocument)
Dim session As New NotesSession
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument

Dim db As NotesDatabase
Set db=session.currentdatabase

Dim acl As NotesACL
Set acl = db.ACL
Dim entry As NotesACLEntry
Dim RoleEntry As NotesACLEntry
Set entry = acl.GetfirstEntry
Dim r As String
r = entry.name
While Not (entry Is Nothing)
Set RoleEntry = acl.GetEntry( r )
Forall role In RoleEntry.Roles
If role = "[局长]" Then Call uidoc.FieldAppendText("局长角色用户" , r & ", ")
End Forall
Set entry = acl.GetNextEntry(entry)
r = ""
If Not (entry Is Nothing) Then r = entry.name

Wend
End Sub



将向局长角色域中取得的人员发送邮件

ServerName:= @Name([O];@UserName);

ReplaceStr:= "O=" + ServerName+";";

ReplaceTo:= "\""+":";

SendtoList:= @ReplaceSubstring(局长角色用户 ; "CN=" : ReplaceStr; "\"" : ReplaceTo);

FormatList:= @Trim(@Left(SendtoList;(@Length(SendtoList)-1)));



@Command([FileSave]);

@MailSend(FormatList;"";"";"局长信箱";"请点击下面连接查看具体内容";"";[IncludeDoclink];[PriorityNormal]);

@Command([FileCloseWindow])





...全文
90 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
Soft21 2002-01-12
  • 打赏
  • 举报
回复
大家好啊,我嘛,不错!
michael_law 2002-01-10
  • 打赏
  • 举报
回复
检查一下"局长角色用户"这个域是不是多值域
傻乐tao 2002-01-10
  • 打赏
  • 举报
回复
求命

536

社区成员

发帖
与我相关
我的任务
社区描述
企业开发 Exchange Server
社区管理员
  • 消息协作社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧