簡體   English   中英

使用plesk服務器12.5 Windows發送codeigniter郵件不起作用

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

這樣的錯誤來了。

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. 

長期運行后,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);

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM