我有此代码,该代码应该可以正常工作,并且在其他服务器上也可以使用,但是在我的服务器(来自Godaddy)上,当我发送电子邮件时,服务器名称为f12Nhghyt65rfg@hhghsecure.server.com(类似于这个)
装有域名
我尝试了很多代码,例如使用端口和主机等,但均无效
$this->load->library('email');
$this->email->from('newsletter@domain.com', 'domain');
$this->email->to('email@gmail.com');
$this->email->subject('Email Test');
$this->email->message('Testing the email class.');
$this->email->send();