Hi Im new so please bare with me. I have been given a project at work to create a perl script that sorts out incoming mail to a particular mailbox and then extracts data from those emails and then uses that data to create appointments in the calendar. Now I have managed to create this successfully but the problem I have is the calendar is another persons calendar, where i can only get it going for doing it on my calendar. so how do i add an appointment to another persons calendar, is pretty much what I need. It is driving me nuts. I have looked all over the internet and cant find anything.

Here is a sample of the code I am using for my calendar:
if(($start=index($subject, "Telecom Service Event", $start)) != -1) { ($SubjectRefuge, $Ref) = split(/Ref. /, $subject); my $newoutlook = Win32::OLE->new('Outlook.Application') or die + "Error!\n"; my $newappt = $newoutlook->CreateItem(olAppointmentItem); $newappt->{Subject} = "Telecom Outage Ref: $Ref"; $newappt->{Start} = "$Date $NZStd"; $newappt->{Duration} = 1 ; #1 minute $newappt->{Body} = "$body"; $newappt->{ReminderMinutesBeforeStart} = 1; $newappt->{BusyStatus} = olFree; $newappt->Save(); }

In reply to Adding Appointments to other users outlook calendar by DeliriumNZ

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.