New to this | Send Mail

Hi ya.

Can anyone show me some how to create an agent or something to send mail to specific users (managers/directors) using script?

I would also like to make this configurable - for instance in case a director leaves the company so I am able to re-assign new management staff to take over the previous persons role.

I am new to lotusscript. Any help or examples would be brill.

Thank you in advance.

Diz

Subject: New to this | Send Mail

Here’s a sample. The sendto field is a group maintained in the Notes Address Book for the exact reason you are taling about. Based on their role they go in this group. The text for the email message is in a field on the form called corptext. Hope this gets you started!

If (others <> “”) Then

	Set maildoc=db.CreateDocument

	maildoc.form="Memo"

	maildoc.subject="For Your Information - Solicitation Approval Requested"

	maildoc.body =otherstext

	maildoc.sendto=others         

	success=maildoc.ComputeWithForm(False,False)

	If success Then

		Call maildoc.send(False)

	End If

End If