×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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!
  • Students Click Here

*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

Jobs

multiple addressees in automated meeting request

multiple addressees in automated meeting request

multiple addressees in automated meeting request

(OP)
Dear ALL :)

I'm having a problem sending a meeting request from an Foxpro Application through Lotus Notes.  I found some code that works just fine, but I simply cannot get the meeting request out to multiple addressees.  On the net, I found that it is possible to do so by using an array and assigning the array to the "SENDTO"-property.

I must be doing something wrong, because it only gets send to the first one in the list.
But WHAT am I doing wrong ?

On the same subject... how do I enter multiple dates for a meeting request on non-adjecent days ?

loSession = CreateObject("notes.NotesSession")
lServer = loSession.GetEnvironmentString( "MailServer",.t.)
lMaildbName = loSession.GetEnvironmentString( "MailFile",.t.)
loMaildb = loSession.getdatabase(lServer, lMaildbName )

<snip>

dimension arecipient(3)
Arecipient(1)="FirstAddr"
Arecipient(2)="SecondAddr"
Arecipient(3)="ThirdAddr"

dimension aCCrecipient(2)
aCCrecipient(1) = "FirstCC"
aCCrecipient(2) = "SecondCC"

MailDoc.sendto = Arecipient
maildoc.Copyto = Accrecipient
MailDoc.altsendto = Arecipient
maildoc.altCopyto = Accrecipient
MailDoc.requiredAttendees = Arecipient
maildoc.optionalAttendees = Accrecipient
MailDoc.altrequiredAttendees = Arecipient
maildoc.altoptionalAttendees = Accrecipient

MailDoc.SAVEMESSAGEONSEND = .T.
MailDoc.SEND(.F.)


many, many thanks for all replies

RE: multiple addressees in automated meeting request

Repeating meeting dates are produced in Notes by creating a document per date. You can only do multiple date list on dates that follow sequentially.

In Notes, you would do the following :

CODE

Dim sendlist as Notesitem
. . .
Set sendlist = New Notesitem(Maildoc,"SendTo","")
for iter=1 to 3
   call sendlist.appendtotextlist(Arecipient(iter))
next
. . .

The difference from the Notes version and your version is that stating MailDoc.sendto = Arecipient does not create a multi-value field on the document - which you have found out the hard way.

I don't know about FoxPro, but you should try to implement the Notes version I showed. I don't think you can work around this.

Pascal.

RE: multiple addressees in automated meeting request

(OP)
dear Pascal

Thanks for your reply, i'm sorry that I waited this long to thank you and answer to it...
I am convinced that this is the way to do it.  I have however not yet found (and believe me, I 've tried) to find the corresponding way in Foxpro to do the 'Set sendlist = New Notesitem(Maildoc,"SendTo","")' command.

No helpfile has helped me on the way yet...

you - or anybody else out there - wouldn't be able to point me in some direction ?

Many thanks in advance

koen

RE: multiple addressees in automated meeting request

Well, I can't find anything about sending to the CC recipients, but this may work:

CODE

dimension arecipient(3)
Arecipient(1)="FirstAddr"
Arecipient(2)="SecondAddr"
Arecipient(3)="ThirdAddr"

dimension aCCrecipient(2)
aCCrecipient(1) = "FirstCC"
aCCrecipient(2) = "SecondCC"

maildoc.Copyto = Accrecipient
MailDoc.altsendto = Arecipient
maildoc.altCopyto = Accrecipient
MailDoc.requiredAttendees = Arecipient
maildoc.optionalAttendees = Accrecipient
MailDoc.altrequiredAttendees = Arecipient
maildoc.altoptionalAttendees = Accrecipient



Call maildoc.Send( False, arecipient)

Leslie

Anything worth doing is a lot more difficult than it's worth - Unknown Induhvidual

RE: multiple addressees in automated meeting request

(OP)
Thanks Leslie, but I am very sorry to say it doesn't do the trick :'(

it only gets sent to the first addressee in the list.  
I don't know what I am doing wrong, but I am getting desperate... I can't find any help on the net to guide me.

Have any other ideas ?

Koen

RE: multiple addressees in automated meeting request

sorry, Pascal is away probably until early next week.  Maybe he can come up with something else to try.

Leslie

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