使生成密码在SMTPSMTP?

时间:2019-06-20 04:05:06

标签: codeigniter-3

如何隐藏密码smtp gmail?

$config['protocol']     = 'smtp';
$config['smtp_host']    = 'ssl://smtp.gmail.com';
$config['smtp_port']    = '465';
$config['smtp_timeout'] = '7';
$config['smtp_user']    = 'email@gmail.com';
$config['smtp_pass']    = '123';  
$config['charset']      = 'utf-8';
$config['newline']      = "\r\n";
$config['mailtype']     = 'html'
$config['validation']   = TRUE; // bool whether to validate email or not      
$ci->email->initialize($config);
$ci->email->from('email@gmail.com', 'Title');
$ci->email->to(array($data['email'],'email@gmail.com'));

在此处隐藏密码:

$config['smtp_pass'] = '123';  // hide password here 

0 个答案:

没有答案