Any way to dynamically create a button in an email?

I have a workflow application that sends emails to users when they need to perform an operation on a document. Access to the application is through Internet Explorer so i cannot send them a doclink and the customer does not want a full URL to be visible in the email.

My solution so far has been to attach a standard button to the text of the email which refers to a field that I write in the email. The code I have used is as follows:

tVal := fdWebAddr;

@If(@IsAvailable(fdWebAddr) & tVal != “”; @URLOpen(tVal); @Prompt([Ok]; “Error”; “Document link has been lost - contact sender and ask them to send the URL”))

Field fdWebAddr contains the URL of the document I want the user to open, however if the email is forwarded this field is stripped from the email. My questions are as follows:

  1. Is there any way to create the button in the email using LotusScript that will allow me to hardcode the URL?

  2. Is there a way to prevent the field from being lost when the email is forwarded?

Any help would be much appreciated :slight_smile:

Subject: RE: Any way to dynamically create a button in an email?

Use NotesMIMEEntity to create the message body as HTML and include URL links with text you choose (or you can generate javascript for a button, but a link works nicely).

For a tool to create the message body manually and auto-generate the LotusScript source to create the same message, see this: MIME (free sample database download accompanying article).