Adding an Attachment To Notes Mail Using LotusScript

25 pts.
Tags:
Lotus Notes
Lotus Notes attachments
LotusScript
I have a Notes form in which the user must attach a Word document as part of the submission process. I would like to add this attchment to a Notes Mail Memo when notifying others of the submission. How do I add the attachment to the Notes Memo? Thanks For Your Help.

Software/Hardware used:
Notes 6.5.3
ASKED: May 11, 2010  6:55 PM
UPDATED: May 13, 2010  5:25 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

While it may appear to be beneficial to attach a file to an email notification, the net result is to increase enterprise storage requirements (file will be stored at least 3 times for a single notice) and the file could then be sent vial forwarding in an uncontrolled manner, possibly compromising security. A much better approach to this problem is to send a doc/web link with the notification email so that the attachment is stored once for all who receive notices, and document security determines who gets to see the file.

If you abosolutely must (I can conceive of why you would want to do this) go down this path, you can give the user a button to perform the attachment (instead of just allowing them to plunk in a file into a visible rich text field) so that you programmatically generate a richtextitem that you can then append via script in the background to the notification email. This also has the benefit of controlling the downloading of the attachment via button visibility after the parent form is saved. This schema can also be used to store attachments in separate documents so that just a list of the docs appears on the form; this allows all kinds of neat security controls over who gets to see/download which files from the form.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Mgl
    Thanks for the response, but you did not answer my question. Let me explain why I need to add an attachment to an email. We are an American subsidiary of a Spanish company. We use Notes, they don't. We use SAP corporate wide. I have a Notes application for IT Requests. If the request pertains to SAP, then it has to be forwarded to the IT Department in Spain. They require a screen shot placed ino a Word document for all SAP requests, which is attached to our Notes IT Requests form in the database. Once all approval routing has been completed (which includes a doc-link to the request), it goes to our IT Manager. He must open the request, detached the Word attachment, attach it to his email and then forward it to Spain. He would like to have the attachment included in the final email sent to him so he doesn't have to do this manually. Everything is programmed in LotusScript, so it I could add the attachment to his email using LotusScript, he would be happy. Thanks for your help.
    25 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following