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

傻乐tao 傻乐tao 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
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])





...全文

相关推荐

评论 3
收藏 已收藏
分享
返回顶部
傻乐tao
消息协作 536 成员 39,094 内容