How to include BUTTON in email body by using lotuscript?

I have the following code, i can append text to the body of the email except button.how does the button can include in the email by using lotuscript and how to code the action of button if the button include like this way?

any help will be greatly appreciated!

Set maildoc = db.createdocument

maildoc.form = “Memo”

maildoc.sendto = doc.sendto

maildoc.subject = “Subject content”

Set Bitem = New NotesRichTextItem( maildoc, “Body”)

Call Bitem.AppendText( “body content…”)

Call Bitem.AddNewLine( 2)

Call Bitem.AppendText( “Please click the button to acknowledge” )

Call Bitem.AddNewLine( 1 )

Call Bitem.AddNewLine( 2)

Call Bitem.AppendText( “Regards” )

Call Bitem.AddNewLine(1)

Call Bitem.AppendText(“aaa”)

Call maildoc.save(True,True)

Call maildoc.Send(False,Requestor(0))

Set doc = maildoc

Call doc.save(True,True)

Subject: how to include BUTTON in email body by using lotuscript?

Hi,

you can not create an new button in an RTF with LotusScript and assign it some code :-((

But you can copy the content of a second rich-text-field using NotesRichtextItem.AppendRTItem(…). If there is a button in there it will be copied as well.

This means that if you manage go store your button somewhere (profile document, …), then you can use this as “template” and append it to your newly created mails.

Bye

Hynek