Location: PHPKode > projects > Game Panel X > GamePanelX/include/EmailTemplates.php


Description:  Default email templates for any mailing on the system

Author:       Ryan D. Gehrig
License:      GNU General Public License (GPL)

function gpx_mail_restart($action)
$longDate = date("l, F d, Y h:iA");

$query = "SELECT first_name,email FROM users WHERE username='$GPXuserName'";

$emailName    = $row['first_name'];
$emailAddress = $row['email'];

      $name = $emailName;
      $userName = $GPXuserName;
      $fromname = "GamePanelX";
      $fromaddress = "hide@address.com";

$to  = $emailAddress;
$subject = $reason;
$message = '
  <title>GamePanelX.com - Server Change</title>

<h2>Server Change</h2>

This email is to notify you of a recent change done do your server.<br>
Information about this is below:<br><br>

Action: ' . $action . '<br>
Time: ' . $longDate . '<br>


<b>You may turn off these status notifications by going to your control panel, under "Settings".</b>

<i>This automated email was sent using the GamePanelX control panel</i>


$headers  = 'MIME-Version: 1.0' .$eol;
$headers .= "From: ".$fromname."<".$fromaddress.">".$eol;
$headers .= 'Content-type: text/html; charset=iso-8859-1' .$eol;

mail($to, $subject, $message, $headers) or die("<b>Error:</b> Failed to send mail message!<br><br>");

Return current item: Game Panel X