Can we send the ICS information with the swift mail ?

<?
$to = 'toreachdee...@gmail.com'
$subject = "Training Registration";
$message = "Thank you for participating in the Technical Certification
training program.\n\n";
//==================
$headers = 'Content-Type:text/calendar; Content-Disposition: inline;
charset=utf-8;\r\n';
$headers .= "Content-Type: text/plain;charset=\"utf-8\"\r\n";
$messaje = "BEGIN:VCALENDAR\n";
$messaje .= "VERSION:2.0\n";
$messaje .= "PRODID:PHP\n";
$messaje .= "METHOD:REQUEST\n";
$messaje .= "BEGIN:VEVENT\n";
$messaje .= "DTSTART:" . $date_array[1] . $momth . $day1 . "T080000\n";
$messaje .= "DTEND:" . $date_array[1] . $momth . $day2. "T170000\n";
$messaje .= "DESCRIPTION: You have registered for the class\n";
$messaje .= "SUMMARY:Technical Training\n";
$messaje .= "ORGANIZER; CN=\"Corporate\":mailto:train...@corporate.com\n";;
$messaje .= "Location:" . $location . "\n";
$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);
?>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to