Update of /cvsroot/openfirst/projects
In directory sc8-pr-cvs1:/tmp/cvs-serv10007
Modified Files:
updates.php
Log Message:
Update script has been modified to send e-mails properly.
Index: updates.php
===================================================================
RCS file: /cvsroot/openfirst/projects/updates.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** updates.php 13 Oct 2003 23:37:52 -0000 1.7
--- updates.php 14 Oct 2003 00:04:54 -0000 1.8
***************
*** 43,47 ****
$message = "";
! $message .= "<h2>$title Action Register Updater</h2>
<div align='left'>Update Template: ".$mailgroup->ProjectsSendTemplate." | Commit Types: ".$mailgroup->ProjectsCommitSelect."</div>
<table width='100%' border='0' cellspacing='0' cellpadding='6'>
--- 43,47 ----
$message = "";
! $message .= "<html><h2>$title Action Register Updater</h2>
<div align='left'>Update Template: ".$mailgroup->ProjectsSendTemplate." | Commit Types: ".$mailgroup->ProjectsCommitSelect."</div>
<table width='100%' border='0' cellspacing='0' cellpadding='6'>
***************
*** 58,62 ****
$message .= "<table width='100%' border='0' cellspacing='0' cellpadding='6'>
<tr>
! <td bgcolor='#CCCCCC'> <div align='center'><font color='#000000'><strong>".$group->GroupName."</strong></font></div></td>
</tr>
</table>
--- 58,63 ----
$message .= "<table width='100%' border='0' cellspacing='0' cellpadding='6'>
<tr>
! <td bgcolor='#CCCCCC'> <div align='center'><font color='#000000'><strong>".$group->GroupName."</strong></font>
! </div></td>
</tr>
</table>
***************
*** 79,83 ****
$message .="
<tr>
! <td><img src='../members/icons/actions/project_open.png' width='32' height='32'></td>
<td>New Project</td>
<td><font color='red'>".$project->ProjectName."</font></td>
--- 80,84 ----
$message .="
<tr>
! <td><img src='$home/$basepath/members/icons/actions/project_open.png' width='32' height='32'></td>
<td>New Project</td>
<td><font color='red'>".$project->ProjectName."</font></td>
***************
*** 100,109 ****
$message .= "<tr >
! <td><img src='../members/icons/filesystems/desktop.png' width='32' height='32'></td>
<td>New Task</td>
<td>".$taskproject->ProjectName."</td>
<td><font color='red'>".$task->TaskName."</font></td>
<td>".$task->Description."</td>
! <td>".$task->Assigned."/td>
</tr>";
--- 101,110 ----
$message .= "<tr >
! <td><img src='$home/$basepath/members/icons/filesystems/desktop.png' width='32' height='32'></td>
<td>New Task</td>
<td>".$taskproject->ProjectName."</td>
<td><font color='red'>".$task->TaskName."</font></td>
<td>".$task->Description."</td>
! <td>".$task->Assigned."</td>
</tr>";
***************
*** 124,128 ****
$message .= "<tr>
! <td><img src='../members/icons/filesystems/files.png' width='32' height='32'></td>
<td>New Note Commited</td>
<td>".$noteproject->ProjectName."</td>
--- 125,129 ----
$message .= "<tr>
! <td><img src='$home/$basepath/members/icons/filesystems/files.png' width='32' height='32'></td>
<td>New Note Commited</td>
<td>".$noteproject->ProjectName."</td>
***************
*** 135,139 ****
}
! $message .="</table>";
}
--- 136,140 ----
}
! $message .="</table></html>";
}
***************
*** 142,146 ****
echo "<br> Sent to: $mailgroup->email (multipart)";
}else{
! mail($mailgroup->email,"$title Daily Update ".date('F j, Y',time()),$message);
echo "<br> Sent to: $mailgroup->email (mail)";
}
--- 143,155 ----
echo "<br> Sent to: $mailgroup->email (multipart)";
}else{
!
! $headers = "MIME-Version: 1.0\r\n";
! $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
! $headers .= "From: $mailfrom\r\n";
! $headers .= "Reply-To: ".$mailgroup->email."\r\n";
! $headers .= "X-Priority: 1\r\n";
! $headers .= "X-MSMail-Priority: High\r\n";
!
! mail($mailgroup->email,"$title Daily Update ".date('F j, Y',time()),$message,$headers);
echo "<br> Sent to: $mailgroup->email (mail)";
}
|