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>");
}
Can anyone help?