Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Lotus Script @mailsend include docLINKS

Lotus Script @mailsend include docLINKS

Lotus Script @mailsend include docLINKS

Is this possible: I have created a view that shows all over due items. I would like to select those overdue items, then email the doclinks to the dept Manager (ea doclink a different doc). I have already completed this for a single doclink, but i want to send many doclink in one email.

I plan to use and action button with Lotus Script. Does any one have a working script that performs this function or is it even possible?

Thank for the help

RE: Lotus Script @mailsend include docLINKS

What you are trying to do closely ressembles the Newsletter function (simple action).
Why don't you try that ?
If that is not enough, then look up this code :

dim session as new notessession
dim db as notesdatabase
dim view as notesview
dim maildoc as notesdocument
dim doc as notesdocument
dim olddoc as notesdocument
dim rtitem as notesrichtextitem

set db = session.currentdatabase
set maildoc = db.createdocument
maildoc.form = "Memo"
maildoc.sendto = mgr_name
set rtitem = new notesrichtextitem(maildoc,"body")
set view = db.getview("viewname")
set doc = view.getfirstdocument
do while not (doc is nothing)
  call rtitem.appenddoclink(doc,"subject")
  set olddoc = doc
  set doc = view.getnextdocument(olddoc)
  delete olddoc
call maildoc.send(false,recipient)

Of course, the above code is not complete. You'll need to get the manager name from somewhere (please do not hard-code it, use a Profile document or something). You'll also need to dress up the body field and provide a subject for the memo, and no doubt include a dozen other things.
But it is a start, and should work as is.
Have fun !

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close