Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
 
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  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

developerWorks

  

PreviousPrevious NextNext


Rubens Sayegh 19.Oct.07 02:24 PM a Web browser
Domino Designer All Releases Windows XP


Greetings!

I have the following scenario:

An application (located at the server) that runs an agent at a pre-determined time, in which it selects a certain condition and sends a mail message to a group of users.

The condition to generate the message is OK.
The recipientīs list is obtained from a hidden view and their names are being stored in an array with the instruction:
Dim RecNames (1 to 1000).

Hereīs the first doubt: I wouldn't like to use an array for this. I donīt know how many names I would get. It could be 100 or 1200. With the "Dim", I had fixed this number in 1000.
What I really want is to populate a mail field with "n" names.
If I just simply add these names to a string variable, separated by commas or semicolons, thereīs a problem when this string is interpreted in the mail form, specifically when the addresses have the @ sign. It gets all mixed up and the server generates an error message ("Could not send mail. Recipient not found.")

Then thereīs another problem: The application is not a "mail" application. The question is: Do I have to specifically inform the server to use a "mail form"? Or just by the fact that I mention in the agent "doc.BlindCopyTo = RecNames" it will produce a mail document?

Hereīs the code:

Sub XYZPTLK

... all definitions and declarations...
... routine to generate the message contents... (in “MessageContents” variable)

... Now to the mail problem section...
... Here I already have the message contents and am preparing to capture the recipientīs name list.


Dim doc As NotesDocument
Set doc = New NotesDocument(db)
doc.Subject = "This is the message's subject”
doc.Body = MessageContents
Xporte="" ' This variable was defined at the beggining

Set view = db.GetView( "RECIPNAMES" )
Set nav = view.CreateViewNav
Set entry = nav.GetFirst
Dim i As Integer
i = 1
Dim RecNames (1 To 1000)
While Not ( entry Is Nothing )
Xporte = entry.ColumnValues(0)
If Xporte<>"" Then
RecNames(i) = entry.ColumnValues(2)
Xporte = entry.ColumnValues(3)
End If
i = i+1
Set entry = nav.GetNext( entry )
Wend

doc.BlindCopyTo = RecNames

Call doc.Send(False)
End Sub

Any help would be very appreciated.
Thanks in advance and best regards,
Rubens






Help - Agent - LotusScript to send ... (Rubens Sayegh 19.Oct.07)
. . RE: Help - Agent - LotusScript to s... (Cesar Mugnatto 19.Oct.07)
. . . . RE: Help - Agent - LotusScript to s... (j d adamsjr 19.Oct.07)
. . . . . . RE: Help - Agent - LotusScript to s... (Rubens Sayegh 21.Oct.07)
. . . . . . RE: Help - Agent - LotusScript to s... (Rubens Sayegh 21.Oct.07)
. . . . RE: Help - Agent - LotusScript to s... (Rubens Sayegh 21.Oct.07)
. . RE: Help - Agent - LotusScript to s... (Rami Jundi 19.Oct.07)
. . RE: Help - Agent - LotusScript to s... (Rubens Sayegh 23.Oct.07)
. . . . RE: Help - Agent - LotusScript to s... (Cesar Mugnatto 23.Oct.07)
. . . . . . RE: Help - Agent - LotusScript to s... (Rubens Sayegh 24.Oct.07)
. . . . . . . . RE: Help - Agent - LotusScript to s... (Cesar Mugnatto 24.Oct.07)
. . GOT IT!!! - Help - Agent - LotusScr... (Rubens Sayegh 26.Oct.07)
. . . . Ainda bem eom> (Cesar Mugnatto 26.Oct.07)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

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

Resources

 Resources
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

Wikis

 Wikis
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