grimmier Posted September 7, 2007 Share Posted September 7, 2007 Ok i have a web calendar, that is used to schedule events and allows the service Techs access to it online. it is currently also set up to email the events to the proper service tech's cell phone as a text message. This works fine, aside from the character limit on text messages. What i would like to be able to do is, also allow the messages to be sent in outlook calendar format. Here is the current code snippet. <?php $page =ob_get_contents(); //get the page ob_end_flush(); //output to browser if ($_POST['email_address'] != ""){ $address = $row->email.",".$_POST['email_address']; }else{ $address = $row->email; } if (($publicview==0)&&($uname!="")){ $message = ('<html><head><title></title></head><body>'."\n".$page."\n".'</body></html>'); $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; mail($address,stripslashes($row->cat_name),$message,$headers); } ?> I haven't been able to figure out how to format the email so that when recieved in outlook it will auto go into the calendar. Any help is greatly appreciated. I will probably be racking my brain on it all weekend. Quote Link to comment https://forums.phpfreaks.com/topic/68382-php-calendar-email-events-to-users/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.