Mail Send Agent With Attachment

Looking for an example of an agent, using formula to attach a word document to an email with doc link.

Subject: What do you want to do?

Attach a Word document or create a doc link? Doc links are links to Notes documents, not attachments.

If you can use Lotusscript you have much more flexibility and control. You could use this class to make it really easy:

http://blog.texasswede.com/lotusscript-mail-notification-class/

Subject: EditInsertFileAttachment

You can make use of the EditInsertFileAttachment function to add the attachment to the desired rich text field.

Example:

Let’s say you want the users to choose the Word document from a pop-up window. Create a rich text field in the form and name it ‘RTField’. Add a button in the form with this code:

@Command([EditGotoField];“RTField”);

@Command([EditInsertFileAttachment]);