403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.216.231
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/Helpdesk/application/models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/Helpdesk/application/models/systemmodel.php
<?php

class systemModel
{
    function __construct($db) {
		$this->db = $db;
    }
    
	public function sendEmail($recipients, $subject, $msghtml, $fromaddress, $fromname)
	{
		require 'application/models/helpers/phpmailer/class.phpmailer.php';
		$mail = new PHPMailer();

		$mail->IsSMTP(); // telling the class to use SMTP
		$mail->SMTPAuth = true;  // enable SMTP authentication
		$mail->SMTPKeepAlive = true; // SMTP connection will not close after each email sent
		$mail->Host = "mail.teiser.gr"; // sets the SMTP server
		$mail->Port = "25"; // set the SMTP port for the GMAIL server
		$mail->Username = "noc"; // SMTP account username
		$mail->Password = "*3r3v0$*"; // SMTP account password
		$mail->CharSet = "utf-8";
		$mail->SetFrom($fromaddress, $fromname);
		$mail->AddReplyTo($fromaddress, $fromname);
		$mail->IsHTML(true);

		$mail->Subject  = $subject;
		
		$recipients_array = explode(",",$recipients);
		foreach ($recipients_array as $recipient)
			$mail->AddAddress(trim($recipient));
			
		$mail->Body = $msghtml;

		if(!$mail->Send())
			return $mail->ErrorInfo;
		else
			return true;
	}
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit