0
我發送的日期爲20131101T130000Z和20131101T150000Z,但事件爲10:00:00 - 12:00:00。Outlook中的錯誤時區和描述
我嘗試在腳本中添加時區,但不能。 時區是美國/福塔萊薩,距格林威治標準時間不到3小時。
而另一個錯誤。這是不發送到事件的描述,它是設置好的,並在變量$主題中包含的信息
public static function enviaReuniao($dtstart,$dtend,$loc,$summary,$from,$to,$subject, $project) { $vcal = "BEGIN:VCALENDAR\r\n"; $vcal .= "VERSION:2.0\r\n"; $vcal .= "PRODID:-//Esmaltec\r\n"; $vcal .= "METHOD:REQUEST\r\n"; $vcal .= "BEGIN:VEVENT\r\n"; $vcal .= "ATTENDEE;CN=\"Sistemas 3\";ROLE=REQ-PARTICIPANT;RSVP=TRUE:MAILTO:[email protected]\r\n"; $vcal .= "ATTENDEE;CN=\"Leandro Pedrosa\";ROLE=REQ-PARTICIPANT;RSVP=TRUE:MAILTO:[email protected]\r\n"; $vcal .= "UID:".date('Ymd').'T'.date('His')."-".rand()."-esmaltec.com.br\r\n"; $vcal .= "DTSTAMP:".date('Ymd').'T'.date('His')."\r\n"; $vcal .= "DTSTART:$dtstart\r\n"; $vcal .= "DTEND:$dtend\r\n"; if ($loc != "") $vcal .= "LOCATION:$loc\r\n"; $vcal .= "SUMMARY:$summary\r\n"; $vcal .= "ORGANIZER; CN=\"EPROJ - $project\":mailto:[email protected]\n"; $vcal .= "SEQUENCE:0\r\n"; $vcal .= "BEGIN:VALARM\r\n"; $vcal .= "TRIGGER:-PT15M\r\n"; $vcal .= "ACTION:DISPLAY\r\n"; $vcal .= "DESCRIPTION:$subject\r\n"; $vcal .= "END:VALARM\r\n"; $vcal .= "END:VEVENT\r\n"; $vcal .= "END:VCALENDAR\r\n";//echo $vcal; //iso-8859-1 $headers = "From: $from\r\nReply-To: $from"; $headers .= "\r\nMIME-version: 1.0\r\nContent-Type: text/calendar; method=REQUEST; charset=\"utf-8\""; $headers .= "\r\nContent-Transfer-Encoding: 7bit\r\nX-Mailer: Microsoft Office Outlook 12.0"; if(mail($to, $summary, $vcal, $headers)) { return true; } else { return false; } }
的例子:
enviaReuniao ("20131101T130000Z", "20131101T150000Z", "Location", "Title", "[email protected]", "[email protected]", "Description", "Project 1");
爲什麼你不能添加時區? –