-
Topic
-
I am attempting to write a formativ applet to send an email to all (cc) recipients of an appointment. When the appointment is deleted, an event is triggered that activates the applet. What I want to do is to is to extract all email addresses in the ‘cc’ field. However, it does not matter if I inadvertently add all recipients. The basic code of the applet (that demonstrates a problem …) that I currently have is:
Set theAppt = Client.ClientState.CommandMessage
for x = 1 to theAppt.Recipients.Count
MsgBox( theAppt.Recipients.Item(x) & ” ” & x )
nextThis works (with the entries in a different order, depending on which of ‘to’ ‘cc’ or ‘bc’ are used) but only shows the first entry in each of the ‘to’ ‘cc’ or ‘bc’ fields. So if I have
To: person1@ourDomain.com
Cc: person2@ourDomain.com;person3@ourDomain.com
Bc: person4@ourDomain.comthe routine alerts:
person2@ourDomain.com 1
person4@ourDomain.com 2
person1@ourDomain.com 3What has happened to person3?
Am I doing something wrong? And is there an easier way to detect all ‘cc’ recipients?
- You must be logged in to reply to this topic.