IBM®
Skip to main content
    Country/region select      Terms of use
 
 
   
     Home      Products      Services & solutions      Support & downloads      My account     
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Lotus Sandbox

Lotus Sandbox

developerWorks
User Review of Notes.net Registration Template
Submitted by a Notes.net user on 01/23/2001.
Comment
When I enter addresses in the Sub sendmail of the Auto-Failover agent and make them uncommented I get the error:
Auto-Failover: sendEmail: 19: FORALL alias variable was previously declared: USERADDRESS

Here is what I have:

Sub sendEmail
Dim docMemo As New NOTESDOCUMENT(db)
Set fview = db.GetView("failover")
Set fdoc = fview.GetFirstDocument
If (fdoc Is Nothing) Then
Exit Sub
End If

Dim userAddress(6) As String
' Add e-mail address of people to notify when fail over occurs
userAddress(0) = "bhumphre@marasconewton.com"
' userAddress(1) = ""
' userAddress(2) = ""
' userAddress(3) = ""
' userAddress(4) = ""
' userAddress(5) = ""
While Not (fdoc Is Nothing)
Set fitem = fdoc.GetFirstItem( "email" )
Forall userAddress In fitem.Values
Call docMemo.ReplaceItemValue("SendTo", userAddress)
Call docMemo.ReplaceItemValue("Subject","A registration failover has occured!!!")
Call docMemo.ReplaceItemValue("From","reg@notes.net")
Call docMemo.ReplaceItemValue("Form","Memo")
Call docMemo.Send(False)
End Forall
Set fdoc = fview.GetNextDocument(fdoc)
Wend
End Sub

Go back

Lotus Software

Document options
Print view

  Sandbox views
By Application Name
By Category
By Product
By Audience
By Date
By Submitter
Conferences

  Resources
developerWorks: Lotus Downloads
alphaWorks Downloads
    About IBM Privacy Contact