Skip to main content
FORUM PLAN UPDATE: Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.
Information Mgmt
New to Lotus
How to buy
Live demos
Technical library
Forums & community
Java™ technology
Open source
SOA and Web services
Web development
My developerWorks
About dW
Submit content

developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum



Sign in to participate PreviousPrevious NextNext

Paul R Emery 17.Aug.16 03:32 PM a Web browser
Domino Designer All Releases All Platforms


I apologize in advance but it has been some time since I have coded and can't seem to figure out the simple task of having my code below allow me to send an update email to a multi valued text field. That multi valued text field is being populated via a submit button from another multi valued text field which contains multiple people seperated by colon's.

I believe I need to make it an array but I can't seem to do it and have it work and have begun to go in circles with googling.

Thank you!!!

Below is my code (my issue is when trying to send to Doc.OtherManagers):

Option Public
Sub Initialize
Dim Session As New NotesSession
Dim DB As NotesDatabase
Dim MailDoc As NotesDocument
Dim Doc As NotesDocument
Dim View As NotesView
Dim Body As NotesRichTextItem

Set DB = Session.CurrentDatabase
Set View = DB.GetView("(VacationReminderEmail)")
Set Doc = View.GetFirstDocument

If Doc Is Nothing Then
Exit Sub

Do Until Doc Is Nothing
Set MailDoc = DB.Createdocument()
MailDoc.SendTo = Doc.Manager(0)
MailDoc.CopyTo = Doc.OtherManagers(0)

MailDoc.Subject = Doc.TeamMember(0) & " is on vacation beginning on " & Doc.StartDate(0) & " and returning on " & Doc.EndDate(0)
Set Body = New NotesRichTextItem( MailDoc, "Body" )

Set Doc=View.GetNextDocument( Doc )
Call MailDoc.Send(False)

End If

End Sub

Lotusscript - Sending email to mult... (Paul R Emery 17.Aug.16)
. . RE: Lotusscript - Sending email to ... (Mark Taylor 18.Aug.16)
. . . . RE: Lotusscript - Sending email to ... (Paul R Emery 8.Sep.16)
. . . . . . RE: Lotusscript - Sending email to ... (Mark Taylor 8.Sep.16)

  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds


Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds


IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums

 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite