问题描述:

i'm trying to send an email using codeigniter but I'm having a problem because whenever I try to send an email, it will stay loading although I successfully send the email.

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

$this->email->clear();

$this->email->set_newline("\r\n");

$this->email->from('[email protected]');

$this->email->to('[email protected]');

$this->email->subject('subject');

$this->email->message('message');

$this->email->set_alt_message('alternative message');

Here's my email configuration.

$config = array('protocol' => 'smtp',

'smtp_host' => 'tcp://smtp.live.com',

'smtp_port' => 587,

'smtp_crypto' => 'tls',

'smtp_user' => '[email protected]',

'smtp_pass' => 'xxxxx',

'mailtype' => 'html',

'wordwrap' => TRUE);

相关阅读:
Top