Controllerless Networks

last person joined: 21 hours ago 

Instant Mode - the controllerless Wi-Fi solution that's easy to set up, is loaded with security and smarts, and won't break your budget
Expand all | Collapse all

authentication failure - Invalid response code received from server

This thread has been viewed 2 times
  • 1.  authentication failure - Invalid response code received from server

    Posted Nov 21, 2016 08:57 AM

    this is the error i get when i run my php script for sending email authentication failure [SMTP: Invalid response code received from server (code: 535, response: 5.7.0 ...authentication rejected)]

    this are the smtp configurations i have done

     

     

     $from="postmaster";$headers = array ('From' => $from,
    'To' => $to,
    'Subject' => $subject);
    $host="ssl://smtp.aruba.it";$port="465";$username="info@****.com";$password="*****";
    $body = $mime -> get();$headers = $mime -> headers($headers);$smtp= Mail::factory('smtp',array('host'=>$host, 'port'=>$port,'auth' => true,
        'username' => $username,
        'password' => $password));
    $query="SELECT * from payment where iduser='$iduser'";$result=mysql_query($query);
    while ($row=mysql_fetch_array($result)) {
        if ($row['amount'] > 0)$mail = $smtp->send($to, $headers, $body);
    if (PEAR::isError($mail)) {  echo("<p>" . $mail->getMessage() . "</p>");
     }

     



  • 2.  RE: authentication failure - Invalid response code received from server

    EMPLOYEE
    Posted Nov 21, 2016 09:01 AM
    Where are you running the script?


  • 3.  RE: authentication failure - Invalid response code received from server

    Posted Nov 21, 2016 09:04 AM

    what do you mean by where? i am calling the php file in javascript

     



  • 4.  RE: authentication failure - Invalid response code received from server

    EMPLOYEE
    Posted Nov 21, 2016 09:05 AM
    Yes, but from where? Please provide some context on your setup.


  • 5.  RE: authentication failure - Invalid response code received from server

    Posted Nov 21, 2016 09:08 AM

    This script sends automatic emails(user credentials) when it is called, and it is called in javascript at the moment when a user click the button registrate. At that moment is shown this error, i don't know if i am clear



  • 6.  RE: authentication failure - Invalid response code received from server

    Posted Nov 21, 2016 09:10 AM

    the email i am using to send messages is registered in aruba that's why i have used as host: smtp.aruba.it



  • 7.  RE: authentication failure - Invalid response code received from server

    EMPLOYEE
    Posted Nov 21, 2016 02:38 PM

    - What host are you sending the email from?

    - Is this script running on a client captive portal?  If not, what server is it running on?