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
MAIL.BOX and
makes sure there is a valid Sender.

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

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


---------



Regards
_____________________________

Thomas Adrian, CLP
Lotus Domino Infrastructure
Volvo Information Technology AB
Tel: +46 31 7657673
Email : thomas.adrian@notes.volvo.se

Dig Deeper on Domino Resources - Part 3

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