forked from Kitware/CDash
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcdashmail.php
More file actions
31 lines (23 loc) · 971 Bytes
/
Copy pathcdashmail.php
File metadata and controls
31 lines (23 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/*=========================================================================
Program: CDash - Cross-Platform Dashboard System
Module: $Id: cdashmail.php 3244 2012-03-01 15:58:36Z david.cole $
Language: PHP
Date: $Date: 2012-03-01 15:58:36 +0000 (Thu, 01 Mar 2012) $
Version: $Revision: 3244 $
Copyright (c) 2002 Kitware, Inc. All rights reserved.
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
function cdashmail($to, $subject, $body, $headers)
{
if(!empty($to))
{
return mail("$to", "$subject", "$body", "$headers");
}
add_log("Cannot send email. Receipient is not set");
return false;
}
?>