| Server IP : 162.214.74.102 / Your IP : 216.73.217.103 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/public_html/lrsys_projetos/sopizzas/application/controllers/ |
Upload File : |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
session_start(); //we need to call PHP's session object to access it through CI
class Testsmtp extends CI_Controller {
function __construct()
{
parent::__construct();
}
function index( $restaurant_id = 0 )
{
/*$name = "test";
$phone = "999099877";
$email = "test@gmail.com";
$config = Array(
'protocol' => 'smtp',
'smtp_host' => 'locahhost',
'smtp_port' => 465,
'smtp_user' => 'noreply@orderingsystemonline.com',
'smtp_pass' => 'EVtfEKND9&lF',
'mailtype' => 'html',
'charset' => 'iso-8859-1'
);
$this->load->library('email', $config);
$this->email->set_newline("\r\n");
$this->email->from('noreply@orderingsystemonline.com', 'orderingsystemonline.com');
$this->email->to('earthtechnology5@gmail.com');
//$this->email->reply_to('my-email@gmail.com', 'Explendid Videos');
$this->email->subject('orderingsystemonline.com - Test Mail');
$message = "Contact form\n\n";
$message .= "Name: ". $name . "\n";
$message .= "Phone: ". $phone . "\n";
$message .= "Email: ". $email . "\n";
$this->email->message($message);
$this->email->send();*/
$ci = get_instance();
$ci->load->library('email');
$config['protocol'] = "smtp";
$config['smtp_host'] = "localhost";
$config['smtp_port'] = "465";
$config['smtp_user'] = "noreply@orderingsystemonline.com";
$config['smtp_pass'] = "EVtfEKND9&lF";
$config['charset'] = "utf-8";
$config['mailtype'] = "html";
$config['newline'] = "\r\n";
$ci->email->initialize($config);
$ci->email->from('noreply@orderingsystemonline.com', 'Blabla');
$list = array('earthtechnology5@gmail.com');
$ci->email->to($list);
//$this->email->reply_to('my-email@gmail.com', 'Explendid Videos');
$ci->email->subject('This is an email test');
$ci->email->message('It is working. Great!');
$ci->email->send();
}
}