Detach and Attach to new document

I would like to know if it is possible toCheck for a large attachment when an email is being sent.

If it is large Detach the attachment and create a document in a seperate database.

Send out the email with a link to the attachment.

I hope that made sense.

Subject: RE: Detach and Attach to new document

Maybe you should look into using “shared mail” functionality, which you can read about in the administrator guide.

Subject: Detach and Attach to new document

Yes, this all sounds possible using LS. You could check for the size of the attachment using

size& = notesEmbeddedObject.FileSize

then create a new document and embed this attachment in it using

Set notesEmbeddedObject = notesRichTextItem.EmbedObject( type%, class$, source$, [ name$ ] )

Save the new doc and also save a doc link to it in the email using

Call notesRichTextItem.AppendDocLink( linkTo, comment$ [, HotSpotText$ ] )

hth