Hi, I’m basically an administrator and have no knowledge on development, would be glad if one of you could script this for me.
I need an agent that runs on email templates, when ever an email from the external user, comes in, i need an agent to send an
email back as auto reply to that perticular external users.
The subject would be " auto Reply"
The boby of the atuo reply will be " Thank you and we have received your
email and we will get back to you with in 24 hours".
Subject: Need help on writing agent
Hi…
This agent creates a new view altogether right ? would it be posible for us to address this agent to work on our inbox view ? so that the files need not be moved to a different folder etc ?
Thank you very much
Subject: Need help on writing agent
You could set up mail rules that captures inbound mail in a mail file, and move it to a folder. Create an agent that goes through that folder and send autoresponses like this: Dim session As New NotesSession()
Dim currentDb As NotesDatabase
Dim mailView As NotesView
Dim mailDoc As NotesDocument
Dim response As NotesDocument
Set currentDb = session.currentDatabase
Set mailView = currentDb.getView("THEFOLDERNAME")
Set mailDoc = mailView.getFirstDocument()
Do Until mailDoc Is Nothing
Set response = currentDb.CreateDocument
Call response.replaceItemValue("Subject", "Auto reply")
Call response.replaceItemValue("Body", "Whatever you want...")
Call response.Send(False, mailDoc.getItemValue("From")(0))
Set mailDoc = mailView.getNextDocument(mailDoc)
Loop
johan@kanngard.net
http://dev.kanngard.net
Subject: RE: Need help on writing agent
That was kind of you, Thanks so much, I shall try the same and get back to you.