Community discussion forum

send calendar appointment from .net to Groupwise

  • 1 year ago
    In vb, trying to send .net (I’m using .net 2) appointment to Groupwise (Novell says it accepts iCal and iMip services). Tried a version, got the email, but when I clicked on the attachment, nothing appeared as an appointment. So, tried again, and now I get a whole new calendar when I click on the ics file - but still no appointment. Any help appreciated... Janet Dim filePath As String = String.Empty If System.IO.File.Exists("iCal\2.ics") Then System.IO.File.Delete("iCal\2.ics") End If Dim path As String = HttpContext.Current.Server.MapPath("iCal\") filePath = path + "2.ics" Dim myStr As String = String.Empty myStr = "BEGIN:VCALENDAR" & vbCrLf & _ "VERSION:1.0" & vbCrLf & _ "BEGIN:VEVENT" & vbCrLf & _ "DTSTART:" & DateTime.Now.AddDays(1).ToUniversalTime().ToString("yyyyMMddTHHmmssZ") & vbCrLf & _ "DTEND:" & (DateTime.Now.AddDays(1)).AddMinutes(35).ToUniversalTime().ToString("yyyyMMddTHHmmssZ") & vbCrLf & _ "LOCATION:CDL" & vbCrLf & _ "DESCRIPTION:Click the attached file to receive appointment" & vbCrLf & _ "SUMMARY:testing another appointment" & vbCrLf & _ "TRIGGER:-PT15M" & vbCrLf & _ "PRIORITY:5" & vbCrLf & _ "END:VEVENT" & vbCrLf & _ "END:VCALENDAR" Dim writer As New System.IO.StreamWriter(filePath) writer.WriteLine(myStr) writer.Close() Dim mail As New System.Net.Mail.MailMessage("yada@emailfrom.net", "yada2@emailto.net", "test email appointment2", "click attached file2 for internet appointment") mail.Attachments.Add(New System.Net.Mail.Attachment(filePath)) Dim client As New System.Net.Mail.SmtpClient("wahoo") client.Send(mail) mail.Attachments.Dispose() mail.Dispose() mail = Nothing
  • 1 year ago
    Hi Janet, I can't spot anything immediately wrong, but I'd try and narrow down the possibilities as to where the problem lies (with the emailing, or the ICS-file-generation). For instance, * if you send the email with an attachment with an ics file you've created using another app (such as Outlook), rather than the one you're creating on the fly, does that work? * if you just create the ics file using the code you've described, does it succesfully open? If it turns out to be the ICS file, I'd just compare the output in the file generated (without the email bit getting in the way), with a valid ICS file you know works - and see if you can spot anything wrong that way? Hope that helps James
  • 1 year ago
    James, Thanks for the reply. I have the appointment now coming in as an attachment to the Groupwise Account, but when I click on it the ics file adds another calendar folder instead of placing the appointment on the default calendar. Know of anything anywhere that shows how to send the appointment directly, not as an attachment, and have it appear on the main calendar? We're running GroupWise 7.1, Novell OES. Web server is Server2003, IIS. Thanks, Janet

Post a reply

Enter your message below

Sign in or Join us (it's free).

Want to stay in touch with what's going on? Follow us on twitter!