我正在使用codeigniter 3.x.问题是我可以使用codeigniter电子邮件库和smtp发送电子邮件,但电子邮件仅在4-10分钟后发送。我怎样才能缩短时间差距。请给我一些建议。延迟发送电子邮件使用codeigniter
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'ssl://smtp.googlemail.com';
$config['smtp_user'] = 'myemail';/*email goes here*/
$config['smtp_pass'] = 'mypass'; /*email pwd goes here*/
$config['smtp_port'] = 465;
$config['smtp_timeout'] = 5;
$config['wordwrap'] = TRUE;
$config['charset'] = 'utf-8';
$config['priority'] = 1;
$this->load->library('email');
$this->email->set_mailtype("html");
$this->load->library('parser');
$this->email->from('my mail');
$this->email->to('tomail');
$this->email->subject('subject');
$this->email->message('message');
wt是你的代码应该显示我吗? –
是否添加了$ this-> email-> set_newline(“\ r \ n”);试着让我们知道 –
@GoldunoSupport根本没有意义,我不认为这是一个代码相关的问题。由于codeigniter不使用任何排队或类似的东西。 – Jordy