Author: pwang
Date: 2012-10-23 17:10:10 -0700 (Tue, 23 Oct 2012)
New Revision: 30700

Modified:
   new_cytoscape_website/bugreport/000readme.txt
   new_cytoscape_website/bugreport/bugreport.php
   new_cytoscape_website/bugreport/cytostaff_emails.inc
Log:
Set up email notification to cytostaff

Modified: new_cytoscape_website/bugreport/000readme.txt
===================================================================
--- new_cytoscape_website/bugreport/000readme.txt       2012-10-23 22:50:32 UTC 
(rev 30699)
+++ new_cytoscape_website/bugreport/000readme.txt       2012-10-24 00:10:10 UTC 
(rev 30700)
@@ -17,3 +17,12 @@
 mysql -u root -p < bugDB_schema.sql
 grant all on bugs.* to cytostaff@localhost Identified by 'cytostaff';
 grant Select, insert,update on bugs.* to cytouser@localhost Identified by 
'cytouser';
+
+
+
+To set up e-mail notification to cytostaff
+
+1. in the cytostaff_emials.inc, The From mail is set to 
"penwangXXXX_AT_gmail.com"
+2. Edit /etc/php.inc, modified sendmail_path, i.e. add 
-fplwang_AT_bioeng.ucsd.edu as the parameter
+
+Although both emails are the members of cytostaff googlegroups, but if we set 
both emails the same, it would not work.
\ No newline at end of file

Modified: new_cytoscape_website/bugreport/bugreport.php
===================================================================
--- new_cytoscape_website/bugreport/bugreport.php       2012-10-23 22:50:32 UTC 
(rev 30699)
+++ new_cytoscape_website/bugreport/bugreport.php       2012-10-24 00:10:10 UTC 
(rev 30700)
@@ -219,7 +219,7 @@
        $from = $cytostaff_emails[0];
        $to = "";
 
-       for ($i=0; $i<count($cytostaff_emails); $i++){
+       for ($i=1; $i<count($cytostaff_emails); $i++){
                $to = $to . $cytostaff_emails[$i] . " ";
        }
                

Modified: new_cytoscape_website/bugreport/cytostaff_emails.inc
===================================================================
--- new_cytoscape_website/bugreport/cytostaff_emails.inc        2012-10-23 
22:50:32 UTC (rev 30699)
+++ new_cytoscape_website/bugreport/cytostaff_emails.inc        2012-10-24 
00:10:10 UTC (rev 30700)
@@ -1,6 +1,6 @@
 <?php
 //CytoStaff who will receive e-mail notification if a bug is entered
-$cytostaff_emails[0] = "[email protected]";
-//$cytostaff_emails[1] = "[email protected]";
-//$cytostaff_emails[2] = "[email protected]";
+// Note: [0] is used in  the mail "from", [1] is used in the mail "to"
+$cytostaff_emails[0] = "penwangXXXX_AT_gmail.com";
+$cytostaff_emails[1] = "cytostaff_AT_googlegroups.com";
 ?>

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to