Flag email to pop-up outlook reminder problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
arekey
Forum Newbie
Posts: 1
Joined: Mon May 10, 2010 9:33 pm

Flag email to pop-up outlook reminder problem

Post by arekey »

A'kum PHP Gurus

Need you help

here my scripts
$to = 'myemail@mydomain.com' . ', '; // note the comma


// subject
$subject = 'Testing Flag Outlook Email';

$semi_rand = md5(time());
$mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";


$message = "--{$mime_boundary}\n" .
"Content-Type: text/html; charset=\"iso-8859-1\"\n" .
"Content-Transfer-Encoding: 7bit\n\n";

// message
$message .= '
<html>
<head>
<title>Testing Flag Outlook Email</title>
</head>
<body>
<p>Its should be follow up</p>
</body>
</html>
';

// To send HTML mail, the Content-type header must be set
//$headers = 'MIME-Version: 1.0' . "\n";
//$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\n";

$headers .= "\nMIME-Version: 1.0\n" .
"Content-Type: multipart/alternative;\n" .
" boundary=\"{$mime_boundary}\"";

// To send HTML mail, the Content-type header must be set
$headers .= "boundary=\"----{$mime_boundary}\"\n" .
$headers .= 'Disposition-Notification-To: <KUL-DWO-OASTEAM@shell.com>' . "\n";

$headers .= 'Thread-Topic: Testing Flag Outlook Email' . "\n";
$headers .="X-Message-Flag: Follow up" . "\n";
$headers .="Reply-By: Mon, 10 May 2010 16:10:00 +0800" . "\n";
$headers .="ReminderSet: true" . "\n";

//$headers .="Expiry-Date: Mon, 10 May 2010 15:17:00 +0800" . "\n";
$headers .= 'From: sender <sender@mydomain.com>' . "\n";
$headers .= 'To: recipient <recipient @mydomain.com>' . "\n";
$headers .="Return-Path: myemail@mydomain.com" . "\n";
$headers .= "X-MSMail-Priority: High\n";



// Mail it
mail($to, $subject, $message, $headers);
Purpose : Send and flag email to msoutlook for follow-up
Problem : Msoutlook does not pop-up reminder when the dateline is reached

Pls help me to makes outlook pop-up reminder. I found thru asp they use Reminderset = true. how about PHP?
Post Reply