简体   繁体   English

使用plesk服务器12.5 Windows发送codeigniter邮件不起作用

[英]codeigniter mail sending using plesk server 12.5 windows is not working

error is coming like this. 这样的错误来了。

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. 

I am using 7.0.3 PHP version in server. 我在服务器上使用7.0.3 PHP版本。

I tried lot, but not working. 我尝试了很多,但是没有工作。

`$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. 

after long duration, plesk customer support gave the smtp hostname. 长期运行后,plesk客户支持将smtp主机名命名为。 i am using plesk server 12.5 version. 我正在使用plesk服务器12.5版本。 here is the code 这是代码

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM