2017-09-06 86 views
0

错误即将到来。使用plesk服务器12.5 codeigniter邮件发送窗口不工作

Warning: mail(): SMTP server response: 503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server. 

我在服务器中使用7.0.3 PHP版本。

我试了很多,但没有工作。

`$config = Array(
    'protocol' => 'smtp', 
    'smtp_host' => 'ssl://smtp.gmail.com', 
    'smtp_port' => 465, 
    'smtp_user' => 'useremail', 
    'smtp_pass' => 'yyyyyy', 
    'mailtype' => 'html', 
    'charset' => 'iso-8859-1', 
    'wordwrap' => TRUE, 
    'newline' => "\r\n" 
    ); $this->load->library('email',$config);` 

The mail is going by using port 465. but they created a email from server. what i want is, the mail should go from server email address. Internal mail is working.we are using odin plesk 12.5 server. is it possible to send mail without giving the gmail username and password? i think need to change the setting in mail server. how to change it? please help me. 
+0

什么是您的邮件设置?你试图发送它的协议? –

+0

你能在这里提供你的代码,所以我们可以进一步帮助你。谢谢! – chad

回答

0

经过长时间,plesk客户支持给出了smtp主机名。我正在使用plesk服务器12.5版本。这里是代码

$config = Array(
    'protocol' => 'smtp', 
    'smtp_host' => 'dedrelay.secureserver.net', 
    'mailtype' => 'html', 
    'charset' => 'iso-8859-1', 
    'wordwrap' => TRUE 
    ); 
    $this->load->library('email',$config); 
相关问题