ÿØÿà JFIF ÿþ; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 82.197.83.129 / Your IP : 216.73.216.166 [ Web Server : LiteSpeed System : Linux us-bos-web1456.main-hosting.eu 4.18.0-553.40.1.lve.el8.x86_64 #1 SMP Wed Feb 12 18:54:57 UTC 2025 x86_64 User : u489457460 ( 489457460) PHP Version : 7.3.33 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/u489457460/domains/syoft.com/public_html/blogs/application/controllers/ |
Upload File : |
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Welcome extends CI_Controller { public function index() { $this->load->view('welcome_message'); } public function sendemail() { // $from_email = "ontario@snapkaro.com"; // $to_email = $_POST['email']; // // print_r($_POST['email']); // //Load email library // $this->load->library('email'); // $this->email->from($from_email, 'Identification'); // $this->email->to($to_email); // $this->email->subject('Send Email Codeigniter'); // $body = $this->load->view('email_template.php',$data,TRUE); // $this->email->message($body); // // $this->email->message('The email send using codeigniter library'); // $this->email->send(); // // print_r($_POST); $myfile = fopen("time.log", "a+") or die("Unable to open file!"); // date_default_timezone_set('Asia/Kolkata'); // $date = new DateTime(); // $txt = $date->format('H:i:s')."\n"; $data = json_decode(file_get_contents('php://input'), true); fwrite($myfile, print_r(json_encode($data), true)); // fwrite($myfile, $txt); fwrite($myfile, $data); fclose($myfile); // $ch = curl_init(); // starts here // $data = json_decode(file_get_contents('php://input'), true); $this->load->library('email'); $config = array( 'mailtype' => 'html', 'charset' => 'utf-8', 'priority' => '1' ); $this->email->initialize($config); $this->email->set_newline("\r\n"); $this->email->from('support@syoft.com', 'Syoft'); $list = array("internal@workathon.co","info@syoft.com","protangent.prashanth@gmail.com"); // $list = array("protangent.prashanth@gmail.com"); $data = array( 'first_name' => $_POST['first_name'], 'last_name' => $_POST['last_name'], 'company_name' => $_POST['company_name'], 'mobile' => $_POST['mobile'], 'email' => $_POST['email'], 'description' => $_POST['description'], 'subject' => $_POST['subject'], ); $this->email->to($list); // replace it with receiver mail id $this->email->subject("Contact Form Submission."); // replace it with relevant subject $body = $this->load->view('email_template.php', $data, TRUE); $this->email->message($body); $this->email->send(); } }