title: sending calendar request through mail
body: <p>I am trying to implement the calendar request mail through my php code. My code is like :</p>
  
  <pre><code>$to = "srimanta.chakraborty@fugenx.com";
  $subject = "Training Registration";
  $message = "Thank you for participating in the Technical Certification training program.";
  $location = "Conf";
  //==================
  $headers = "Content-Type:text/calendar; Content-Disposition: inline; charset=utf-8;";
  $headers .= "Content-Type: text/plain;charset=utf-8";
  $messaje = "BEGIN:VCALENDAR";
  $messaje .= "VERSION:2.0";
  $messaje .= "PRODID:PHP";
  $messaje .= "METHOD:REQUEST";
  $messaje .= "BEGIN:VEVENT";
  $messaje .= "DTSTART:20121223T171010Z";
  $messaje .= "DTEND:20121223T191010Z";
  $messaje . "DESCRIPTION: You have registered for the class";
  $messaje .= "SUMMARY:Technical Training";
  $messaje .= "ORGANIZER; CN=\"Corporate\":mailto:jayashree.g@fugenx.com";
  $messaje .= "Location:" . $location . "";
  $messaje .= "UID:040000008200E00074C5B7101A82E00800000006FC30E6 C39DC004CA782E0C002E01A81\n";
  $messaje .= "SEQUENCE:0\n";
  $messaje .= "DTSTAMP:".date('Ymd').'T'.date('His')."\n";
  $messaje .= "END:VEVENT\n";
  $messaje .= "END:VCALENDAR\n";
  $headers .= $messaje;
  mail($to, $subject, $message, $headers);
  </code></pre>
  
  <p>By this code I got mail but not in terms of calendar request format. Also mail has been forwarded along with an attachment "Training Registration.ics" file.
  I need the Accept, Tentative, Decline, Propose New Time, Calendar option along with the mail.
  Please guide me how to do that.
  Thanks.</p>