Manage Learn to apply best practices and optimize your operations.

Customizabel "From Address" When Sending Mail From Serveragent

Here is a tip for you !

Sending mail from a server database using Lotus Script will make the server
the Sender of the message and if someone tries to make a reply, the server will
get the mail which is not a successfull solution.

Instead of sending the message this script saves the document in the servers
makes sure there is a valid Sender.

Copy this into an agent and use it in the WebQuerySave or WebQueryOpen open

Sub Initialize
Dim session As New notessession
Dim db As notesdatabase
Dim maildb As New Notesdatabase("","MAIL.BOX")
Dim maildoc As notesdocument
Dim webdoc As notesdocument

Set db = session.Currentdatabase
Set webdoc = session.Documentcontext

Set maildoc = maildb.Createdocument
maildoc.PostedDate = Now
maildoc.Subject = "The Subject values goes here"
maildoc.Body = "The body field values goes here"

maildoc.Recipients = "enter here the recipient(s) of the message"
maildoc.From = "enter here who should be the sender of the message"
Call maildoc.Save(True,True)
Exit Sub
End Sub



Thomas Adrian, CLP
Lotus Domino Infrastructure
Volvo Information Technology AB
Tel: +46 31 7657673
Email :

Dig Deeper on Domino Resources - Part 3

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials'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 ...