使用Codeigniter激活发送邮件

I want to send a mail to the user with the Registration Form I made with codeigniter. But I have a problem: The failed section that I printed on the screen comes in and I don't have mail in my mailbox. How Can I do this? Can you help me? In summary, I want to send an e-mail to the user using the Registration Form I did with Codeigniter and I did not.

File Name: Member.php

My Codes

if($insert){

            //Aktivasyon maili at

            $config = array(

                "protocol" => "smtp",
                "smtp_host" => "ssl://smtp.gmail.com",
                "smtp_port" => 465,
                "smtp_pass" => "****",
                "smtp_user" => "lolo12345shd@gmail.com",
                "starttls" => true,
                "charset" => "utf-8",
                "mailtype" => "html",
                "wordwrap" => true,
                "newline" => "
",

            );
            $link =base_url("member/activation/$acitavtion_code");

            $message = "Merhabalar, {$this->input->post("full_name")}, <br> Üyeliğinizi aktifleşmesi için sadece bir adım kaldı
            Üyeliğiniz aktifleştirmek için <a href='$link'>Tıklayınız</a> ";

            $config = $this->load->library("email" , $config);

            $this->email->from("lolo12345shd@gmail.com", "lolo12345");
            $this->email->to($this->input->post("email"));
            $this->email->subject("Üyelik Aktivasyonu");
            $this->email->message($message);

           $send = $this->email->send();

            if($send){
                echo "succes";



            }else{

                echo "failed";

            }