Manage Learn to apply best practices and optimize your operations.

Email As A Third Party Through A Button (Front-End)

This code will let you send Email as a Third Party Through A Button (Front-End)
from any database. This code is helpful for developer and their business
Sub Click(Source As Button)
Dim session As New NotesSession
Dim ws As New NotesUIWorkSpace
Dim db As NotesDatabase
Dim uidoc As NotesUIDocument
Dim doc As NotesDocument
Dim note As NotesDocument
Dim Body As NotesRichTextItem
Dim rtitemA As Variant
Dim SendTo As String

Set db = session.CurrentDatabase

Set uidoc = ws.CurrentDocument
Set doc = uidoc.Document

Set note = db.CreateDocument

note.From = "Independant Agencies Unit"
note.Principal ="Independant Agencies Unit"
note.subject = uidoc.FieldGetText("Subject")
note.tmpDisplaySentBy = "Independant Agencies Unit"


Call uidoc.Save
SendTo = uidoc.FieldGetText( "SendTo" )

recipents = SendTo
Call note.send(False,recipents)

Msgbox "Notification has been sent. Thank You" , 0+64,"Notification Sent"

Call uidoc.Save
Call uidoc.Close
End Sub

Dig Deeper on Lotus Notes Domino Administration Tools

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 ...