HCL
Skip to main content  
 
   


SPRTechnote


@MailSend in Action HotSpot or Form Action Executes when Document is Opened by Web Client

Technote Number: 1095165


Problem:
This issue was reported to Lotus Quality Engineering and has been addressed in
Domino 4.6.5 and Domino 5.0.1.

Excerpt from the Lotus Notes and Lotus Domino Release 5.0.1 and 4.6.5 QMR fix
list:

Web Server
- SPR# NBAR3GSQTB - Fix a problem which caused applications to send mail when a
document was loaded rather than when the user clicked on a hot spot where
@MailSend was used. [5.0.1, 4.6.5]

As a workaround for Domino 5.0 and versions prior to 4.6.5, change the Action
formula to the following:

@Command([ToolsRunMacro]; AgentName)

In this formula, AgentName refers to a shared, manually executed agent that is
set to the "Run Once (@Commands May be Used) option and contains the @MailSend
function or the LotusScript equivalent. For example:

Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument

Set db = session.CurrentDatabase
Set doc = New NotesDocument( db )
' or if you want to send the currently open doc
Set doc=session.documentcontext
doc.Form = "Memo"
doc.Subject = "Request executed by MailTest agent"
doc.Body = "MailTest Agent created this"
Call doc.Send( False, "Travis Bickell" )

End Sub

See Related Documents section below for additional ways to mail enable Web
forms.



Related Documents:

How to Mail Enable a Domino Form that is Submitted by a Web Client
Document #: 1173162
More >





  Document options
Print this document
Print view

  Search
Search Advanced Search


  Fix list views

 RSS feeds   RSS
Subscribe to the fix list

  Resources
Using this database
View notices

  HCL Support
HCL Support


    About HCL Privacy Contact