Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. sending appointment as email attachment to Groupwise

sending appointment as email attachment to Groupwise

Scheduled Pinned Locked Moved ASP.NET
csharpdatabasesysadmintestingbeta-testing
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    janetb99
    wrote on last edited by
    #1

    In vb (I know - I hear you groaning), 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 (can have multiple calendars in Groupwise, e.g. work, personal) 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 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups