Q
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

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close