Menu

ORGANIZATION?

Help
Cymen Vig
2006-06-30
2013-03-23
  • Cymen Vig

    Cymen Vig - 2006-06-30

    I'm playing with this and so far it's great. I do have one problem. I am adding ORGANIZATION to the vEvent like so:

    //$event->add('ORGANIZER', new Property('CN="Bob Jones":mailto:bob.jones@example.com');

    Unfortunately, this doesn't work right as it comes out like this:

    ORGANIZATION:CN="Bob Jones":mailto:bob.jones@example.com

    But the spec seems to call for a ";" instead of a ":" after ORGANIZATION in file. Am I supposed to be using another method?

     
    • Cymen Vig

      Cymen Vig - 2006-06-30

      Doh! Now it makes sense. I ended up with something like this:

      $event->add('ORGANIZER', new Property('mailto:'. nameToEmail($results['Creator - ']), 'CN="'. $results['Creator - '] .'"'));

      This produces:

      ORGANIZER;CN="Bob Dole":mailto:Bob.Dole@example.com

      Which appears to be to spec.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.