Hi Mark, I thought you were trying to create a MIME email. They're really not that difficult -- once you create one MIME email, you'll find it's pretty easy. I find they generally look more professional than strictly richtext emails, just my opinion.
You can run a LotusScript agent in the PostSaveDocument event (which is the way I did it in 8.5.1) -- I think now in 8.5.2 you can also get a handle to the in-memory document in the QuerySaveDocument event too. You're right there's no @MailSend anymore in XPages. But you don't have to run a LS agent; you can also write some Server-side Javascript using methods & properties that look a lot like LotusScript, take a look in the Help -- you should be able to just append a doclink to a richtext item via SSJS if that's your desire. So you'd just need to create a virtual/temporary Form="Memo" document and add a "Body" RT field & create your email that way & then do a doc.Send at the end.
Here's a snippet from the Help:
Syntax
appendDocLink(doc:NotesDocument) : void
appendDocLink(db:NotesDatabase) :
void
appendDocLink(vw:NotesView) : void
appendDocLink(doc:NotesDocument,
comment:string) : void
appendDocLink(db:NotesDatabase,
comment:string) : void
appendDocLink(vw:NotesView, comment:string) :
void
Parameter |
Description |
Document
doc |
The document to which you want to
link. |
Database
db |
The database to which you want to
link. |
View
vw |
The view to which you want to
link. |
String
comment |
The text that appears when a user
presses and holds the mouse over the link. |
String
hotspottext |
Boxed text which the user clicks
to follow the link. This text appears in place of a
token. |