Problem solve Get help with specific problems with your technologies, process and projects.

Send email to all users with LotusScript

I am a new Lotus programmer. I need to send email to all users of my Web site. I need to accomplish this in LotusScript. Since I am new, I don't have enough ideas about this. Any help would be appreciated.

Do you have the users' email addresses? If you do, then you can create an agent that iterates through each of the email addresses and sends an email to each one. There are a LOT of ways to accomplish this. The easiest way in LotusScript would be to Create a new NotesDocument, give it some required fields, and use the Send() Method to send the mail. It would look something like this.

Dim session as New NotesSession
Dim myDB As NotesDatabase
Set myDB = session.CurrentDatabase
Dim memo as New NotesDocument( myDB )
Dim rtItem as NotesRichTextItem
ReDim recipients(0) as string

For k = 0 to ubound( "some array of recipients" )
	In here, build an array of email addresses
Recipients( 0 ) = "apple@yahoo.com"
Next k

Memo.form = "memo"
Memo.subject = "This is the subject of the memo"
Set rtItem = new NotesRichTextItem( "body", memo )
Call rtItem.AppendText( "This is the first line of my body text")
Call rtItem.appendText( "This is another line.  I could use")
Call rtItem.AppendText( "Rich Text Styles to format if I want.")
Call memo.send( False, recipients )

Dig Deeper on Lotus Notes Domino Administration Tools



  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/Search400.com community. These cheat ...

  • HTML cheat sheet

    This is a really cool cheat sheet if you're looking to learn more about HTML. You'll find just about everything you every wanted ...

  • Carol Woodbury: Security

    Carol Woodbury