I need to come up with a solution where we can prevent specific people to send email unless they get approved by let’s say the manager.
What I tried to do is create a server based rule, which blocks an email from a specific address, which works fine. It copies the email to another database, which was created with the mail routing template and keeps it there, since this one is not checked from the router process.
My problem is now, how can I “release” this message?
I have asecond server and could switch on smtp routing there, but how can I get this message to the other mail.box for routing? Replication??
Any help would be greatly appreciated.
Subject: Approval for Mail Routing
I have a situation where I have a mail-in DB that receives specific inbound mail. In some cases I want it to be transfered to my own mail DB and look like it was originally just sent to me. So I can then respond to it and all is fine. This code was derived from a suggestion by someone else, but I don’t remember where. So thanks to them whoever they are. In any case I think that you could modify this code to send the email to the right person who could then approve it. I hope I understand your problem correctly!
Sub Click(Source As Button)
Dim session As New NotesSession
Dim Db As NotesDataBase
Dim Collection As NotesDocumentCollection
Set db = session.CurrentDatabase
Dim newMailDoc As NotesDocument
Dim thisNote As NotesDocument
Dim recipAddress As String
Dim servername As String
'ServerName = Db.Server
servername = "CN=Production/O=Workflo Systems" ' <<< Enter your server name here
Set collection = db.UnprocessedDocuments
Set thisNote = collection.GetFirstDocument
recipAddress = Session.UserName
While Not thisNote Is Nothing
Dim mailbox As NotesDatabase
Set mailbox = New NotesDatabase(servername, "mail.box")
Set newMailDoc = mailbox.CreateDocument()
Call thisNote.CopyAllItems(newMailDoc, True)
newMailDoc.Recipients = recipAddress
newMailDoc.SendTo = recipAddress
Call newMailDoc.RemoveItem("SMTPOriginator")
newmailDoc.Form = "Memo"
newMailDoc.Subject = ThisNote.Product
newMailDoc.Body = ThisNote.Problem
newMailDoc.From = ThisNote.Email
If Not thisNote.Form(0) = "Return Receipt" Then
Call newMailDoc.RemoveItem("IntendedRecipient")
End If
Call newMailDoc.Save(True, True)
Set thisNote = collection.GetNextDocument(thisNote)
Wend
End Sub