Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
058fa63f
Commit
058fa63f
authored
Feb 25, 2003
by
Leigh B. Stoller
Browse files
Add X-netbed: header to all email from the web interface (as was done
previously to perl generated email).
parent
7646d33f
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/defs.php3.in
View file @
058fa63f
...
...
@@ -80,13 +80,19 @@ include("dbdefs.php3");
function
TBMAIL
(
$to
,
$subject
,
$message
,
$headers
=
0
)
{
global
$THISHOMEBASE
;
global
$SCRIPT_NAME
;
$subject
=
strtoupper
(
$THISHOMEBASE
)
.
":
$subject
"
;
if
(
$headers
)
return
mail
(
$to
,
$subject
,
$message
,
$headers
);
else
return
mail
(
$to
,
$subject
,
$message
);
$tag
=
"X-NetBed: "
.
basename
(
$SCRIPT_NAME
);
if
(
$headers
)
{
$headers
=
"
$headers
\n
"
.
$tag
;
}
else
{
$headers
=
$tag
;
}
return
mail
(
$to
,
$subject
,
$message
,
$headers
);
}
#
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment