为什么用下面的代码发送邮件发送一个是没有问题,改送二个邮件地址列表就显示不成功了呢?
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])
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])
...全文
相关推荐
Asp参考手册(完整)
在网找了很久都没有到完整的,都是没有ASP内建对象帮助,所以自已重新补做上去
AsP参考手册中文版(asp完全自学手册)chm版最新版本
ASP参考手册CHM版(全称《ASP完全自学手册》)是官方为ASP学习者量身打造的一款极具实用性的中文教程。针对ASP是否难以掌握的疑问,本手册将为您提供有效的学习支持。该手册涵盖了ASP基础教程、ASP对象、ASP组件、ASP与AJAX的结合应用以及ASP实例分析等多项内容,是ASP初学者的理想辅助工具。有需要的读者可通过下载本手册进行深入学习。 ASP功能概述: 1. 动态编辑、修改或添加网页内容。 2. 响应用户通过HTML表单提交的查询及数据。
ASP中文参考手册.chm
ASP中文参考手册.chm ASP中文参考手册.chm
Telerik Extensions for ASP.NET MVC 2013.2.611 参考手册
☆ 资料说明: ☆ Telerik Extensions for ASP.NET MVC 2013.2.611 参考手册;
ASP参考手册.chm/css20.chm/CSS全参考手册.chm/HTML参考手册.chm/JavaScript参考手册.chm
ASP参考手册.chm/css20.chm/CSS全参考手册.chm/HTML参考手册.chm/JavaScript参考手册.chm 解压密码www.tommyhu.cn


