我正在尝试找到一种从 CodeIgniter 发送简单确认电子邮件的方法,但它不起作用,我已经寻找了好几天,还没有找到任何有效的答案。
我的email.php
文件是:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
* Configuration file for Email library
*/
$config['protocol'] = 'smtp';
$config['charset'] = 'utf-8';
$config['mailtype'] = 'html';
$config['smtp_timeout'] = 5;
$config['smtp_host'] = 'smtp.mandrillapp.com';
$config['smtp_port'] = 587;
$config['smtp_user'] = $ENV['*****'];
$config['smtp_pass'] = $ENV['*****'];
?>
我得到的错误是:
Undefined index: [My Mandrill Username] (in the config/email.php file)
Undefined index: [My Mandrill API KEY] (in the config/email.php file)