Posts

Showing posts from April, 2023

send email

 https://www.youtube.com/watch?v=FZfneLNyE4o     function do_email ( $msg = NULL , $sub = NULL , $to = NULL , $attachment = NULL ) {         $config = array ();         $config [ 'protocol' ] = "smtp" ;         $config [ 'smtp_host' ] = "ssl://smtp.googlemail.com" ;         $config [ 'smtp_port' ] = "465" ;         $config [ 'smtp_user' ] = "marinersbloodcenter@gmail.com" ;         $config [ 'smtp_pass' ] = "gyhqdnegnqfcqtvu" ;         $config [ 'mailtype' ] = "html" ;         $config [ 'charset' ] = "utf-8" ;         $config [ 'newline' ] = " \r\n " ;         $config [ 'wordwrap' ] = TRUE ;         $this -> load -> library ( 'email' );         $this -> email -> initialize ( $config );         $system_name = $this -> db -> get_where ( 'settings' , array ( 'type' => 'system_name