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.
什麼是您的郵件設置?你試圖發送它的協議? –
你能在這裏提供你的代碼,所以我們可以進一步幫助你。謝謝! – chad