colishau1
asked on
Failure to Interpret Received Meeting
Hi there,
I am developing a component to automate the sending of mail and meetings with VB and Notes 5.
With the kind help of Qwaletee from:
https://www.experts-exchange.com/questions/20704065/Send-Appointment-Meeting-with-vb.html
I successfully completed the functionality for sending both.
My problem with the code below is that the notes client that receives the mail does not
recognise it as a meeting or calendar entry. I am inexperienced with this but it could
possibly be due to problems inviting recipients.
Below I have included the meeting code and the (shortened) mail that is received.
I would appreciate any help you can offer,
Thank You,
Colin.
/************************* ***Meeting Code********************** */
Dim session As Object
Dim db As Object
Dim doc As Object
Dim startDateTime As Object
Dim endDateTime As Object
Dim DbLocation As String
Set session = CreateObject("Notes.NotesS ession")
DbLocation = session.GETENVIRONMENTSTRI NG("MailFi le", True)
Set db = session.GETDATABASE("", DbLocation)
Set doc = db.CREATEDOCUMENT
Set startDateTime = session.CREATEDATETIME(txt AppStartDa te.Text & " " & txtAppStartTime.Text)
Set endDateTime = session.CREATEDATETIME(txt AppStartDa te.Text & " " & txtAppEndTime.Text)
'Set doc type
Call doc.replaceitemvalue("Form ", "Appointment")
Call doc.replaceitemvalue("Appo intmentTyp e", "3")
'0: APPOINTMENT 1: ANNIVERSARY 2: ALL DAY 3 = MEETING 4 = REMINDER
'Set reminder alarm
Call doc.replaceitemvalue("$Ala rm", 1)
Call doc.replaceitemvalue("$Ala rmOffset", 0)
'Set Times and Dates
Call doc.replaceitemvalue("Cale ndarDateTi me", startDateTime.LSLOCALTIME)
Call doc.replaceitemvalue("Star tDateTime" , startDateTime.LSLOCALTIME)
Call doc.replaceitemvalue("EndD ateTime", endDateTime.LSLOCALTIME)
'Set Main Doc Attributes
Call doc.replaceitemvalue("Alar ms", "1")
Call doc.replaceitemvalue("Chai r", session.USERNAME)
Call doc.replaceitemvalue("Loca tion", txtAppLocation.Text)
Call doc.replaceitemvalue("From ", session.USERNAME)
Call doc.replaceitemvalue("Subj ect", txtAppSubject.Text)
Call doc.replaceitemvalue("Send To", Split(txtAppRecipient.Text , ","))
Call doc.replaceitemvalue("Body ", txtAppBody.Text)
Call doc.replaceitemvalue("Excl udefromVie w", "D")
Call doc.replaceitemvalue("Requ iredAttend ees", txtInvite.Text)
doc.Save True, True
doc.Send False
doc.PUTINFOLDER "($Alarms)"
/************************* Received Mail********************** *********/
Calendar Entry:
Meeting
Subject:
Setting up a Meeting
Location:
The Board Room
Begins:
22/08/2003
Entry type:
Meeting
Ends:
22/08/2003
|----------------|
| [ ] Repeats |
|----------------|
Chair:
notes1
Invitations already sent
To:
notes2@hotmail.com
cc:
|----------------|
| [ ] Pencil In |
|----------------|
Time will appear free to others.
|---------------------|
| [ ] Mark Private |
|---------------------|
Others cannot see any details about this event.
|------------------|
| [X] Notify me |
|------------------|
Have Notes notify you before the event.
Categorize:
Description:
this is the description/body of the mail
/************************* ********** *****END** ********** ********** *****/
I am developing a component to automate the sending of mail and meetings with VB and Notes 5.
With the kind help of Qwaletee from:
https://www.experts-exchange.com/questions/20704065/Send-Appointment-Meeting-with-vb.html
I successfully completed the functionality for sending both.
My problem with the code below is that the notes client that receives the mail does not
recognise it as a meeting or calendar entry. I am inexperienced with this but it could
possibly be due to problems inviting recipients.
Below I have included the meeting code and the (shortened) mail that is received.
I would appreciate any help you can offer,
Thank You,
Colin.
/*************************
Dim session As Object
Dim db As Object
Dim doc As Object
Dim startDateTime As Object
Dim endDateTime As Object
Dim DbLocation As String
Set session = CreateObject("Notes.NotesS
DbLocation = session.GETENVIRONMENTSTRI
Set db = session.GETDATABASE("", DbLocation)
Set doc = db.CREATEDOCUMENT
Set startDateTime = session.CREATEDATETIME(txt
Set endDateTime = session.CREATEDATETIME(txt
'Set doc type
Call doc.replaceitemvalue("Form
Call doc.replaceitemvalue("Appo
'0: APPOINTMENT 1: ANNIVERSARY 2: ALL DAY 3 = MEETING 4 = REMINDER
'Set reminder alarm
Call doc.replaceitemvalue("$Ala
Call doc.replaceitemvalue("$Ala
'Set Times and Dates
Call doc.replaceitemvalue("Cale
Call doc.replaceitemvalue("Star
Call doc.replaceitemvalue("EndD
'Set Main Doc Attributes
Call doc.replaceitemvalue("Alar
Call doc.replaceitemvalue("Chai
Call doc.replaceitemvalue("Loca
Call doc.replaceitemvalue("From
Call doc.replaceitemvalue("Subj
Call doc.replaceitemvalue("Send
Call doc.replaceitemvalue("Body
Call doc.replaceitemvalue("Excl
Call doc.replaceitemvalue("Requ
doc.Save True, True
doc.Send False
doc.PUTINFOLDER "($Alarms)"
/*************************
Calendar Entry:
Meeting
Subject:
Setting up a Meeting
Location:
The Board Room
Begins:
22/08/2003
Entry type:
Meeting
Ends:
22/08/2003
|----------------|
| [ ] Repeats |
|----------------|
Chair:
notes1
Invitations already sent
To:
notes2@hotmail.com
cc:
|----------------|
| [ ] Pencil In |
|----------------|
Time will appear free to others.
|---------------------|
| [ ] Mark Private |
|---------------------|
Others cannot see any details about this event.
|------------------|
| [X] Notify me |
|------------------|
Have Notes notify you before the event.
Categorize:
Description:
this is the description/body of the mail
/*************************
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Definitely missing a few fields from the accepted solution. Here's the original list of fields...
Form
$Alarm
$AlarmOffset", 0
startDateTime
endDateTime
calendarDateTime
Subject
startTime
appointmentType
Alarms
startDate
endDate
endTime
SendTo
Form
$Alarm
$AlarmOffset", 0
startDateTime
endDateTime
calendarDateTime
Subject
startTime
appointmentType
Alarms
startDate
endDate
endTime
SendTo
ASKER
Thanks for your help guys.
If you do send them via smtp, to internet addresses, you may loose the 'Appointment' form.
Try sending them to Notes users first
Call doc.replaceitemvalue("Send
cheers,
Tom