Commit 1b5fa804 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Fix up email messages.

parent 24c7327f
...@@ -125,7 +125,7 @@ if (! $query_result) { ...@@ -125,7 +125,7 @@ if (! $query_result) {
# #
# If an experiment "shell" give some warm fuzzies and be done with it. # If an experiment "shell" give some warm fuzzies and be done with it.
# The user us responsible for running the tb scripts on his/her own! # The user is responsible for running the tb scripts on his/her own!
# The user will need to come back and terminate the experiment though # The user will need to come back and terminate the experiment though
# to clear it out of the database. # to clear it out of the database.
# #
...@@ -138,6 +138,19 @@ if ($nonsfile) { ...@@ -138,6 +138,19 @@ if ($nonsfile) {
yourself. yourself.
</h2></center><br>\n"; </h2></center><br>\n";
if (1) {
mail($TBMAIL_WWW, "TESTBED: New Experiment Created",
"User: $uid\n".
"EID: $exp_id\n".
"PID: $exp_pid\n".
"Name: $exp_name\n".
"Created: $exp_created\n".
"Expires: $exp_expires\n".
"Start: $exp_start\n".
"End: $exp_end\n",
"From: $TBMAIL_WWW\n".
"Errors-To: $TBMAIL_WWW");
}
echo "</body> echo "</body>
</html>\n"; </html>\n";
die(""); die("");
...@@ -274,7 +287,7 @@ echo "</XMP>\n"; ...@@ -274,7 +287,7 @@ echo "</XMP>\n";
# #
# Lets generate a mail message for now so that we can see whats happening. # Lets generate a mail message for now so that we can see whats happening.
# #
if (0) { if (1) {
mail($TBMAIL_WWW, "TESTBED: New Experiment Created", mail($TBMAIL_WWW, "TESTBED: New Experiment Created",
"User: $uid\n". "User: $uid\n".
"EID: $exp_id\n". "EID: $exp_id\n".
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment