View Single Post
Old 25-11-2008, 18:24   #5 (permalink)
Pete Nice
Crankshaft
 
Pete Nice's Avatar
 
Join Date: Apr 2003
Posts: 2,066
I'm bumping this post - cos I need some help - this shit ain't working. Well I say it aint working - it's works on a mac in entourage and thunderbird. But Outlook is being a bitch - I think it has to do with CRLF on a PC.

I really need some ideas on this one - I'm stressed up to the eyeballs at work and I really need a solution to this fucker asap - this is the latest code I have:

Code:
<?php $subject = 'Email Subject'; $email = $_POST['email']; $email1 = $_POST['email1']; $message = "BEGIN:VCALENDAR\r\n"; $message .= "METHOD:PUBLISH\r\n"; $message .= "VERSION:2.0\r\n"; $message .= "BEGIN:VEVENT\r\n"; $message .= "SEQUENCE:5\r\n"; $message .= "LOCATION:London\r\n"; $message .= "DTSTART:20081208T120000\r\n"; $message .= "DTSTAMP:20021028T011706Z\r\n"; $message .= "SUMMARY:Event Title\r\n"; $message .= "UID:EC9439B1-FF65-11D6-9973-003065F99D04\r\n"; $message .= "DTEND:20081208T140000\r\n"; $message .= "BEGIN:VALARM\r\n"; $message .= "TRIGGER;VALUE=DURATION:-P1D\r\n"; $message .= "ACTION:DISPLAY\r\n"; $message .= "DESCRIPTION:Event Description\r\n"; $message .= "END:VALARM\r\n"; $message .= "END:VEVENT\r\n"; $message .= "END:VCALENDAR\r\n"; $headers = "From: email@email.com\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\r\n"; mail($email,$subject,$message,$headers); mail($email1,$subject,$message,$headers); ?>
  Reply With Quote