homepage Welcome to WebmasterWorld Guest from 54.197.110.151
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Vcalendar MAC issue
fahad direct



 
Msg#: 4461895 posted 4:21 am on Jun 6, 2012 (gmt 0)

Vcalendar works well in Windows Outlook but not working in MAC Outlook. It shows below message instead of appointment by email:

charset="UTF-8"
Content-Transfer-Encoding: 7bit

BEGIN:VCALENDAR
VERSION:2.0
METHOD:REQUEST
BEGIN:VEVENT
UID:UID:20120605T112338-532614004-testing
DTSTAMP:20120605T112338
DTSTART:20120605T112338
SUMMARY: Appointment testing
DESCRIPTION: Test appointment
END:VEVENT
END:VCALENDAR

Here is the code of appointment creation:
$myUID="UID:".date('Ymd').'T'.date('His')."-".rand()."-test".$eol; // required by Outlok
$message="BEGIN:VCALENDAR".$eol;
$message.="VERSION:2.0".$eol;
//$message.="PRODID:-//Foobar Corporation//NONSGML Foobar//EN\n";
$message.="METHOD:REQUEST".$eol; // requied by Outlook
$message.="BEGIN:VEVENT".$eol;
$message.="UID:".$myUID; // required by Outlok
$message.="DTSTAMP:".date('Ymd').'T'.date('His').$eol; // required by Outlook
$message.="DTSTART:".date('Ymd').'T'.date('His').$eol;
$message.="SUMMARY: $attachment_subject".$eol;
$message.="DESCRIPTION: $notes".$eol;
$message.="END:VEVENT".$eol;
$message.="END:VCALENDAR".$eol;
$headers = "From: $User <$User_Email>".$eol;
$headers .= "MIME-Version: 1.0".$eol;
$headers .= "Content-Type: text/calendar; method=REQUEST;".$eol;
$headers .= 'charset="UTF-8"';
$headers .= $eol;
$headers .= "Content-Transfer-Encoding: 7bit";
mail("$Email", $subject, $message, $headers)

 

coopster

WebmasterWorld Administrator coopster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4461895 posted 2:14 pm on Jun 12, 2012 (gmt 0)

Are you trying to send this as an attachment?

Two ideas ...
1) You may need an extra CRLF after the final message line.
2) If an attachment, try adding boundary markers.

fahad direct



 
Msg#: 4461895 posted 4:06 am on Jun 14, 2012 (gmt 0)

It doesn't come as an attachment and i have tried with extra CRLF but still no luck.

coopster

WebmasterWorld Administrator coopster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4461895 posted 11:29 pm on Jun 18, 2012 (gmt 0)

Then I might try the attachment instead. See if that works.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved