AnonSec Shell
Server IP : 92.204.138.22  /  Your IP : 18.217.212.151
Web Server : Apache
System : Linux ns1009439.ip-92-204-138.us 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64
User : internationaljou ( 1019)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/internationaljou/SSRG-01-03-2024/application/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/internationaljou/SSRG-01-03-2024/application/controllers/Contact1.php
<?php
ob_start();
defined('BASEPATH') OR exit('No direct script access allowed');
class Contact extends CI_Controller {
function __construct()  
      {  
         parent::__construct(); 
		 $this->load->helper('url'); 
		 $this->load->library('session');
      } 

	 
	public function index()
	{
	    $this->load->helper('url'); 
		$this->load->view('common/contacthead');
		$this->load->view('common/header');
		$this->load->view('common/callforpaper-conference');
		$this->load->view('contact');
		$this->load->view('common/footer');
		
	}
/*
	public function send_mail() 
	{ 
	 
$to = "sivahari19@gmail.com, hari";
$subject = "HTML email";

$message = "
<html>
<head>
<title>HTML email</title>
</head>
<body>
<p>This email contains HTML Tags!</p>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
</table>
</body>
</html>
";

// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";

// More headers
$headers .= 'From: <queries@ssrgjournals.org>' . "\r\n";
//$headers .= 'Cc: myboss@example.com' . "\r\n";

if(mail($to,$subject,$message,$headers))
{
echo "SEnd";
}
else
{
echo "not";
}


     }   
	 
	*/

	  public function send_mail() 
	  { 
		//Load email library 
         $this->load->library('email'); 
         
         //Send mail 

		// Mail config
        $to = 'contactmail@internationaljournalssrg.org';
        //$to = 'queries@ssrgjournals.org';
        $from = $this->input->post('Email');
        $fromName = $this->input->post('Name');
        $mailSubject = 'Contact Request Submitted by '.$fromName;
        $message = $this->input->post('Message');
        
        // Mail content
        $mailContent = '
            <h2>Contact Form</h2>
            <p><b>Name: </b>'.$fromName.'</p>
            <p><b>Email: </b>'.$from.'</p>
            <p><b>Subject: </b>'.$mailSubject.'</p>
            <p><b>Message: </b>'.$message.'</p>
        ';
            
        $config['mailtype'] = 'html';
        $this->email->initialize($config);
        $this->email->to($to);
        $this->email->from($from, $fromName);
        $this->email->subject($mailSubject);
        $this->email->message($mailContent); 
	
		 
         if($this->email->send())
       	{ ?>
	    	<script>
			alert("Email Send Successfully");
			</script>
            
	        
	   <?php  
	   redirect('contact', 'refresh');
	   
	   }  //redirect(Contact);}
         else {  ?>
		 	<script>
				alert("Failure to Send Mail");
			</script>
	  <?php exit; //redirect('contact', 'refresh');
	  }  
	
}
}

Anon7 - 2022
AnonSec Team