Author: pwang
Date: 2009-03-23 16:24:49 -0700 (Mon, 23 Mar 2009)
New Revision: 16332

Added:
   cyto_web/trunk/plugins/sendConfirmationEmail.inc
Removed:
   cyto_web/trunk/plugins/sendConfirmationEmail.php
Log:
Rename file sendConformationEmail.php to sendConfirmationEmail.inc

Added: cyto_web/trunk/plugins/sendConfirmationEmail.inc
===================================================================
--- cyto_web/trunk/plugins/sendConfirmationEmail.inc    2009-03-23 23:22:48 UTC 
(rev 16331)
+++ cyto_web/trunk/plugins/sendConfirmationEmail.inc    2009-03-23 23:24:49 UTC 
(rev 16332)
@@ -0,0 +1,38 @@
+<?php
+// Send a confirmation e-mail to user
+// Also send e-mails to notify cytostaff that new plugin is uploaded
+       
+function sendConfirmartionEmail($yourName, $email, $pluginName, 
$pluginDescription) {
+               
+       include 'cytostaff_emails.inc';
+
+       $from = $cytostaff_emails[0];
+       $to = $email;// Author e-mail contact
+       $bcc = "";
+       for ($i=0; $i<count($cytostaff_emails); $i++){
+               $bcc = $bcc . $cytostaff_emails[$i] . " ";
+       }
+       $subject = "Your plugin -- " . $pluginName;
+       $body = $yourName.",\n\nThank you for submitting " . $pluginName . " to 
Cytoscape. " .
+               "\n\nDescription:\n\n".$pluginDescription."\n\n".
+               "Cytoscape staff will review your plugin and publish it on the 
Cytoscape website." .
+               "\n\n\nCytoscape team";
+
+       $headers = "From: " . $from . "\r\n"; 
+       if ($bcc != "") {
+               $headers = $headers . "BCC: " . $bcc;
+       }
+
+       if (trim($to) == "") {
+               // in case user did not provide an e-mail address, notify the 
cytostaff
+               $to = $cytostaff_emails[0];
+               $body = $body . "\n\nNote: User did not provide an e-mail 
address!";
+       }
+
+       if (mail($to, $subject, $body, $headers)) {
+               //echo("<p>Confirmation e-mail was sent!</p>");
+       } else {
+               echo("<p>Failed to send a confirmation e-mail...</p>");
+       }
+}
+?>     

Deleted: cyto_web/trunk/plugins/sendConfirmationEmail.php
===================================================================
--- cyto_web/trunk/plugins/sendConfirmationEmail.php    2009-03-23 23:22:48 UTC 
(rev 16331)
+++ cyto_web/trunk/plugins/sendConfirmationEmail.php    2009-03-23 23:24:49 UTC 
(rev 16332)
@@ -1,37 +0,0 @@
-<?php
-// Send a confirmation e-mail to user
-// Also send e-mails to notify cytostaff that new plugin is uploaded
-       
-function sendConfirmartionEmail($yourName, $email, $pluginName) {
-               
-       include 'cytostaff_emails.inc';
-
-       $from = $cytostaff_emails[0];
-       $to = $email;// Author e-mail contact
-       $bcc = "";
-       for ($i=0; $i<count($cytostaff_emails); $i++){
-               $bcc = $bcc . $cytostaff_emails[$i] . " ";
-       }
-       $subject = "Your plugin -- " . $pluginName;
-       $body = $yourName.",\n\nThank you for submitting " . $pluginName . " to 
Cytoscape. " .
-               "Cytoscape staff will review your plugin and publish it on the 
Cytoscape website." .
-               "\n\nCytoscape team";
-
-       $headers = "From: " . $from . "\r\n"; 
-       if ($bcc != "") {
-               $headers = $headers . "BCC: " . $bcc;
-       }
-
-       if (trim($to) == "") {
-               // in case user did not provide an e-mail address, notify the 
cytostaff
-               $to = $cytostaff_emails[0];
-               $body = $body . "\n\nNote: User did not provide an e-mail 
address!";
-       }
-
-       if (mail($to, $subject, $body, $headers)) {
-               //echo("<p>Confirmation e-mail was sent!</p>");
-       } else {
-               echo("<p>Failed to send a confirmation e-mail...</p>");
-       }
-}
-?>     


--~--~---------~--~----~------------~-------~--~----~
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