CodeIgniter Email Doesn't Work
问题 I configured an SMTP server accessible via localhost. PHP mail() command works fine, I use it in scheduled tasks to email backups as attachments. If I use CodeIgniter v1.7.2 email library using the following code, and the CI debug output says the message is sent, but the SMTP server logs show Bad Sender. $this->CI->load->library('email'); $config['protocol'] = 'mail'; $config['smtp_host'] = 'localhost'; $config['mailtype'] = 'html'; $config['crlf'] = "\r\n"; // CHANGED FROM DEFAULTS $config[