Include a document Form in my Email

Hi,I have created a form with a workflow, and the form is sent by Email with an attachment of this form (IncludeDoclink). Is it possible instead to have a link of my document, to have exacly the whole document in my Email???

Thanks

Subject: Include a document Form in my Email

Yes. If you are using Lotusscript to send the mail just call doc.send(True,[optional recipients]). I think the formula version has an equivalent argument. This is called storing the form.

Note Storing the form takes up a lot of space in the database (in this case the recipient’s mail file) and should be used sparingly. And that goes double when mailing into a database you don’t have operational control over ie someone’s mail file.

I have used this technique once in ten years. There is almost always a better solution. For example, do you need the form, with all its hotspots and so on, to continue to work from within the user’s mailfile? Or do you just need a rich text rendering of the document as rich text? In the latter case you should look at notesdocument.rendertortitem().

Consider getting a small form, call it redirector, added to your company’s mail template. It doesn’t need any fields. This form, when it opens, checks the document for the following fields: serverhint, replicaid, documentuniqueid. Finding these, it then opens the dcument matching these values, and closes itself automatically. Then, instead of storing the form and mailing your document to the recipient, you create a redirector document instead, insert the real document’s unique id and so on, and mail that to the user, without storing the form. When the user opens the redirector document, it switches them to the real document.

Another problem with storing the form is that any business logic it contains quickly becomes outdated. Avoid this technique like the plague.