Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
Information Mgmt
New to Lotus
How to buy
Live demos
Technical library
Forums & community
Java™ technology
Open source
SOA and Web services
Web development
My developerWorks
About dW
Submit content

developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum



PreviousPrevious NextNext

Christine Gordinier 3.May.07 08:53 AM a Web browser
Domino Designer 6.0.3 Windows XP

I have a lotusscript agent to send an email using the fields from the current document. One of the fields on that document is a rich text box using a Java Applet. All the other fields are text fields. The agent works fine if I run it without adding the contents of the rich text box. When I do add the rich text box the agent does not send the email. Here is the code:

Sub Initialize

Dim session As New NotesSession

Dim maildb As NotesDatabase
Set maildb = session.CurrentDatabase
Set maildoc = New NotesDocument(maildb)

Dim doc As NotesDocument
Set doc = session.DocumentContext
Dim richStyle As NotesRichTextStyle
Set richStyle = session.CreateRichTextStyle

Principle = ""
maildoc.Form = "Memo"
maildoc.Subject = "Email message"
maildoc.Body = "Testing"
maildoc.SendTo = ""
maildoc.From = Principle
maildoc.ReplyTo = Principle
maildoc.AltFrom = Principle
maildoc.SendFrom = Principle
maildoc.INetFrom = Principle
maildoc.tmpDisplaySentBy = Principle
maildoc.tmpDisplayFrom_Preview = Principle
maildoc.DisplaySent = Principle

Dim richText As New NotesRichTextItem(MailDoc, "Body")

Call richText.AppendText("Session Resumes")
Call richText.AppendText(Chr(13) & Chr(13))
richStyle.Bold = True
Call richText.AppendStyle(richStyle)
Call richText.AppendText("At: ")
Call richText.AppendText(doc.SessionResumesAt(0))
Call richText.AppendText(Chr(13) & Chr(13))
Call richText.AppendText("On: ")
Call richText.AppendText(doc.SessionResumesOn(0))

richStyle.Bold = False
Call richText.AppendStyle(richStyle)
Call richText.AppendText(Chr(13) & Chr(13))
Call richText.AppendText("Session Information: " )
Call richText.AppendRTItem(doc.SessionInfo) ===This is the line that doesn't work. Any suggestions???
Call richText.AppendText(Chr(13) & Chr(13))

Call maildoc.Send(False,maildoc.SendTo)
End Sub

lotusscript email sending rich text... (Christine Gordi... 3.May.07)
. . RE: lotusscript email sending rich ... (Richard A Fieko... 3.May.07)
. . . . RE: lotusscript email sending rich ... (Christine Gordi... 3.May.07)
. . . . . . RE: lotusscript email sending rich ... (Richard A Fieko... 8.May.07)
. . . . RE: lotusscript email sending rich ... (Christine Gordi... 3.May.07)
. . . . . . RE: lotusscript email sending rich ... (Wing Mar 3.May.07)
. . . . . . . . RE: lotusscript email sending rich ... (Christine Gordi... 4.May.07)
. . . . . . . . . . RE: lotusscript email sending rich ... (Wing Mar 4.May.07)
. . RE: lotusscript email sending rich ... (Ron Scott 4.May.07)

  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds


Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds


IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums

 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite