Sending email with gmail smtp with codeigniter email library

后端 未结 8 2165
情书的邮戳
情书的邮戳 2020-11-22 06:29
load->library(\'email\');
    }

    func         


        
8条回答
  •  抹茶落季
    2020-11-22 07:01

    Perhaps your hosting server and email server are located at same place and you don't need to go for smtp authentication. Just keep every thing default like:

    $config = array(        
        'protocol' => '',
        'smtp_host' => '',
        'smtp_port' => '',
        'smtp_user' => 'yourname@gmail.com',
        'smtp_pass' => '**********'
        );
    

    or

    $config['protocol'] = '';
    $config['smtp_host'] = '';
    $config['smtp_port'] = ;
    $config['smtp_user'] = 'yourname@gmail.com';
    $config['smtp_pass'] = 'password';
    

    it works for me.

提交回复
热议问题