2017-09-06 5 views
0

Fehler kommt so.coderigniter Mail senden mit Plesk Server 12.5 Windows funktioniert nicht

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. 

Ich benutze 7.0.3 PHP-Version in Server.

Ich versuchte viel, aber nicht funktioniert.

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

Was sind Ihre E-Mail-Einstellungen? Mit welchem ​​Protokoll versuchst du es zu senden? –

+0

Können Sie hier Ihren Code angeben, damit wir Ihnen weiterhelfen können? Vielen Dank! – chad

Antwort

0

nach langer dauer gab plesk kundendienst den smtp hostname. Ich benutze Plesk Server 12.5 Version. Hier ist der Code

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