A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_URI::$config is deprecated
Filename: core/URI.php
Line Number: 101
Backtrace:
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Router::$uri is deprecated
Filename: core/Router.php
Line Number: 127
Backtrace:
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$log is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$benchmark is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$hooks is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$config is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$utf8 is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$uri is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$exceptions is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$router is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$output is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$security is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$input is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$lang is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$load is deprecated
Filename: core/Controller.php
Line Number: 78
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$db is deprecated
Filename: core/Loader.php
Line Number: 396
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_DB_mysqli_driver::$failover is deprecated
Filename: database/DB_driver.php
Line Number: 371
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$parser is deprecated
Filename: core/Loader.php
Line Number: 1283
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::open($save_path, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 132
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 292
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::read($session_id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 166
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::write($session_id, $session_data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 235
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::destroy($session_id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 315
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 356
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$session is deprecated
Filename: core/Loader.php
Line Number: 1283
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property master_model::$navigation is deprecated
Filename: models/Master_model.php
Line Number: 10
Backtrace:
File: /home/sabrikas/public_html/application/models/Master_model.php
Line: 10
Function: _error_handler
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property master_model::$categories is deprecated
Filename: models/Master_model.php
Line Number: 11
Backtrace:
File: /home/sabrikas/public_html/application/models/Master_model.php
Line: 11
Function: _error_handler
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property master_model::$site_info is deprecated
Filename: models/Master_model.php
Line Number: 12
Backtrace:
File: /home/sabrikas/public_html/application/models/Master_model.php
Line: 12
Function: _error_handler
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property master_model::$posts is deprecated
Filename: models/Master_model.php
Line Number: 13
Backtrace:
File: /home/sabrikas/public_html/application/models/Master_model.php
Line: 13
Function: _error_handler
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$master_model is deprecated
Filename: core/Loader.php
Line Number: 358
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 10
Function: __construct
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$masterData is deprecated
Filename: controllers/Post.php
Line Number: 11
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 11
Function: _error_handler
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property post_model::$posts is deprecated
Filename: models/Post_model.php
Line Number: 11
Backtrace:
File: /home/sabrikas/public_html/application/models/Post_model.php
Line: 11
Function: _error_handler
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 15
Function: model
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property post_model::$table is deprecated
Filename: models/Post_model.php
Line Number: 12
Backtrace:
File: /home/sabrikas/public_html/application/models/Post_model.php
Line: 12
Function: _error_handler
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 15
Function: model
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property post_model::$author is deprecated
Filename: models/Post_model.php
Line Number: 13
Backtrace:
File: /home/sabrikas/public_html/application/models/Post_model.php
Line: 13
Function: _error_handler
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 15
Function: model
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property post_model::$comments is deprecated
Filename: models/Post_model.php
Line Number: 14
Backtrace:
File: /home/sabrikas/public_html/application/models/Post_model.php
Line: 14
Function: _error_handler
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 15
Function: model
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property post_model::$comment is deprecated
Filename: models/Post_model.php
Line Number: 15
Backtrace:
File: /home/sabrikas/public_html/application/models/Post_model.php
Line: 15
Function: _error_handler
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 15
Function: model
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$post_model is deprecated
Filename: core/Loader.php
Line Number: 358
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 15
Function: model
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Post::$model is deprecated
Filename: controllers/Post.php
Line Number: 18
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 18
Function: _error_handler
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$log is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$benchmark is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$hooks is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$config is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$utf8 is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$uri is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$exceptions is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$router is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$output is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$security is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$input is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$lang is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$load is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$db is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$parser is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$session is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$master_model is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$masterData is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$post_model is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$model is deprecated
Filename: core/Loader.php
Line Number: 931
Backtrace:
File: /home/sabrikas/public_html/application/controllers/Post.php
Line: 49
Function: parse
File: /home/sabrikas/public_html/index.php
Line: 316
Function: require_once
Codeigniter Mail Gönderme Fonksiyonu | Sabri Kaş Freelance Web Developer
Application > helpers klasörüne useful_helper.php dosyası oluşturup içerisine aşağıdaki kodları ekliyoruz. $config değişkeni ayarlarımızı, $data değişkeni email içeriğimizi barındırıcak.
function send_mail($config=array(),$data=array())
{
$CI =&get_instance();
$mail=array
(
"protocol"=>$config["protocol"], "smtp_host"=>$config["host"],
"smtp_port"=>$config["port"],
"smtp_user"=>$config["user"],
"smtp_pass"=>$config["pass"],
"charset"=>"utf-8",
"mailtype"=>"text",
"wordwrap"=>true,
"newline"=>"\r\n"
);
$CI->load->library("email",$mail);
$CI->email->from($data["from"]);
$CI->email->to($data["to"]);
$CI->email->subject($data["subject"]);
$CI->email->message($data["message"]);
$send=$CI->email->send(); //gönderilirse true gönderilmezse false döner.
return $send;
}Kullanmak için ise fonksiyonu çağıracağımız controller dosyasının metoduna aşağıdaki kodları ekleyin
$this->load->helper("useful"); $confg=array(
"protocol"=>"smtp", "host"=>"smtp adresi", "port"=>"smtp portu", "user"=>"gonderen@mailadresi.com", "pass"=>"mail adresinin şifresi" ); $data = array( "from"=>"Maili Gönderenin Mail Adesi", "to"=>"Mailin Gönderileceği Mail Adresi", "subject"=>"Konu", "message"=>"Mesaj" ); $send = send_mail($config,$data); //Helper'ı Çağırıyoruz
if($send){ //Mail Gönderildi }
else{ //Mail Gönderilemedi }
Böylece mail gönderimi işlemi başarıyla tamamlanır. Helper yapısını dilediğiniz şekilde değiştirebilirsiniz isterseniz tek dizi halinde de kullanabilirsiniz size kalmış. Kolay Gelsin İyi Çalışmalar :)
Yorumlar (0)
Bu İçeriğe Henüz Yorum Yapılmamış..
Yorum Bırakın
Mail Adresiniz Diğer Kullanıcılara Gösterilmez
Yorum Kaydediliyor Lütfen Bekleyiniz.