Jump to content

Calendar Question


flemingmike

Recommended Posts

Hi All,

 

i use the following to send me calendar appointments.  does anyone know what i can do to remove a calendar event?

note: the uid and job times are genterated for each event.

 

$to = "[email protected]";
$subject = "JOB";

$message = "BEGIN:VCALENDAR\r\n";
$message .= "METHOD:PUBLISH\r\n";
$message .= "VERSION:2.0\r\n";
$message .= "BEGIN:VEVENT\r\n";
$message .= "SEQUENCE:0\r\n";
$message .= "DESCRIPTION:ABCDEFGH\r\n";
$message .= "LOCATION:Downtown\r\n";
$message .= "DTSTART:20110815T173300\r\n";
$message .= "DTSTAMP:20110815T145100\r\n";
$message .= "SUMMARY:JOB SUMMARY\r\n";
$message .= "UID:EC9439B1-FF65-11D6-9973-787957F99D04\r\n";
$message .= "DTEND:20110815T193300\r\n";
$message .= "BEGIN:VALARM\r\n";
$message .= "TRIGGER;RELATED=START:-PT120M\r\n";
$message .= "ACTION:DISPLAY\r\n";
$message .= "END:VALARM\r\n";
$message .= "END:VEVENT\r\n";
$message .= "END:VCALENDAR\r\n";

$headers = "From: [email protected]\r\n";
$headers .= "MIME-version: 1.0\r\n";
$headers .= "Content-type: text/calendar; method=PUBLISH; charset=UTF-8\r\n";
$headers .= "Content-transfer-encoding: 7bit";

mail($to,$subject,$message,$headers);

Link to comment
https://forums.phpfreaks.com/topic/244858-calendar-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.