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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.