Jump to content

php calendar, email events to users...


grimmier

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/68382-php-calendar-email-events-to-users/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.