here is the serverside script i run to send the email from a button, wouldnt it be great to be able to use @mailsend and return a http link? The plus side is i can put in html content this way and format it to my hearts content.

db1 = session.getDatabase(“notes1/rcc”,”Applications\\database.nsf”)
doc1 = db1.createDocument()

var1 = “Employee: ” + @Text(dominoDocument1.getItemValueString(’employeename’))

var2 = “Craft: ” + dominoDocument1.getItemValueString(‘craft’)

var3 = “html tags” +
var1 + “breaktag” +
var2 + “breaktag” +
“a reflink tag + link ” +
dominoDocument1.getDocument().getUniversalID()+”‘> Link

+ “close html tags”

body = doc1.createMIMEEntity()
subject = body.createHeader(“Subject”)

stream = session.createStream()

body.setContentFromText(stream, “text/html; charset=iso-8859-1”, 0)

doc1.send(“group or persons name”)


2 Responses to Sending an email from an Xpage, should it be this painfull?

  1. Anonymous says:

    Is there anyway to specify who the email is from instead of who is logged into the form?

    I'm currently working on an XPage that submits Contracts for review and would like it to be sent from

Leave a Reply

Your email address will not be published. Required fields are marked *