Advertisement

09.06.2005 at 01:56AM PDT, ID: 21551707
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0

Sending an Outlook VCalendar Appointment in a CDO Message (Email)

Asked by mattrich1 in Active Server Pages (ASP)

Tags: , , ,

Hi there,

I am currently developing an application and need some URGENT help with this code! I am prepared to give away 500pts for an answer to this question! (I would have given more but EE have a restriciton of 500 max!)

I am wanting to send an Outlook appointment (Vcalendar format) via a CDO.Message in an ASP page. I don't want to send the details as a .VCS attachment as I want the appointment to automatically come up in the client's Outlook software as an appoinment with the appropriate ACCEPT and DECLINE buttons.

My code so far is this (however in Outlook all it comes up as is a plain-text email with Vcalendar parameters as text):

==============================================================
<%

Dim port, address, iMsg

mailaddr = "myserver"
mailport = "25"

Set iMsg = CreateObject("CDO.Message")

With iMsg
    .To = "bob@myserver.com"
    .From = "me@myserver.com"
    .Subject = "Calendar Appointment"
.Textbody = "BEGIN:VCALENDAR" + _
"PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN" + _
"VERSION:2.0" + _
"METHOD:REQUEST" + _
"BEGIN:VEVENT" + _
"ATTENDEE;ROLE=REQ-PARTICIPANT;RSVP=TRUE:MAILTO:bob@myserver.com" + _
"ORGANIZER:MAILTO:bob@myserver.com" + _
"DTSTART:20050906T083000Z" + _
"DTEND:20050906T090000Z" + _
"LOCATION:asdf" + _
"TRANSP:OPAQUE" + _
"SEQUENCE:0" + _
"UID:040000008200E00074C5B7101A82E00800000000703EA29F21B3C5010000000000000000100"  + _
"000002F53F1D2CC9AFE47A6BBE30F9028C1AB"  + _
"DTSTAMP:20050906T082904Z"  + _
"DESCRIPTION:When: Tuesday\, 6 September 2005 8:30 p.m.-9:00 p.m."  + _
"(GMT+12:00) Auckland\, Wellington.\nWhere:" + _
"asdf\n\n*~*~*~*~*~*~*~*~*~*\n\n\n"  + _
"SUMMARY:Nothing much to say here" + _
"PRIORITY:5" + _
"X-MICROSOFT-CDO-IMPORTANCE:1" + _
"CLASS:PUBLIC" + _
"END:VEVENT" + _
"END:VCALENDAR"

    .Configuration.Fields.Item("urn:schemas:mailheader:content-id")= "calendar_message"
    .Configuration.Fields.Item("urn:schemas:mailheader:content-type")= "text/vcalendar"
    .Configuration.Fields.Item("urn:schemas:mailheader:content-transfer-encoding")= "UTF-8"

    .Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")= 2
    .Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")= mailaddr
    .Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport")= mailport
    .Configuration.Fields.Update
    .Send

End With

Set iMsg = Nothing

%>

==============================================================


All I get when I receive the message is just  BEGIN:VCALENDAR PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN VERSION:2.0........etc

So basicallly what I am trying to do is emulate the outlook function where you create an appointment and then send invitations to people....I am wanting to automatically send these invitations from an ASP script using the above code.

Thanks in advance for any help!

Regards,
MatthewStart Free Trial
[+][-]09.06.2005 at 02:10AM PDT, ID: 14827625

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Active Server Pages (ASP)
Tags: outlook, appointment, asp, vcalendar
Sign Up Now!
Solution Provided By: WhatIsTheJava
Participating Experts: 1
Solution Grade: C
 
 
[+][-]09.06.2005 at 02:43AM PDT, ID: 14827740

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.06.2005 at 02:57AM PDT, ID: 14827794

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.06.2005 at 02:57AM PDT, ID: 14827798

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.07.2005 at 04:03AM PDT, ID: 14835202

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.07.2005 at 06:37AM PDT, ID: 14836536

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.07.2005 at 11:07PM PDT, ID: 14842349

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32