How can I make an appointment in outlook with php? -


i´m having issue , don´t know why, example date 20160729 , time 080000 means must make appointment 2016-07-09 @ 8:00 weird reason in outlook takes 5 hours away, appointment @ outlook made @ 3:00 am...i need fix timezone/something issue!

<?php function sendicalevent($from_name, $from_address, $to_name, $to_address, $year, $month, $day, $hour, $minute, $seconds, $endhour, $endminute, $subject, $description, $location) { //create email headers $headers = "from: someone@someone\r\n"; $headers .= 'content-type:text/calendar; content-disposition: inline; charset=utf-8;\r\n';   $message = "begin:vcalendar\r\n version:2.0\r\n prodid:-//hpe-scheduler// v1.0//en\r\n method:request\r\n begin:vevent\r\n uid:".$to_address."\r\n dtsamp:".$year.$month.$day."t".$hour.$minute.$seconds."z\r\n dtstart:".$year.$month.$day."t".$hour.$minute.$seconds."z\r\n dtend:".$year.$month.$day."t".$endhour.$endminute.$seconds."z\r\n summary:".$subject."\r\n location:".$location."\r\n description:".$description."\r\n attendee;cutype=individual;role=req-participant;partstat=needs-action;rsvp=true;cn".$to_name.";x-num-guests=0:mailto:".$to_address."\r\n end:vevent\r\n end:vcalendar\r\n";   $mailsent = mail($to_address, $subject, $message, $headers);  } 

?>


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -