you sometimes settle to live with them. :)
i have the email icon on my android displaying (-1) notification for a couple of months now. noticed, but not bothered. i just check my email when it doesn't display (-1). haha
# yum install php-pear
# pear install --alldeps Mail-1.2.0
2. to use mail in php:
// email settings
require_once "Mail.php";
$username = "<gmail email address here>@gmail.com";
$password = "<gmail email password here>";
$from = "<gmail email address here>@gmail.com";
$host = "ssl://smtp.gmail.com";
$port = "465";
$headers = array(
'From' => $from,
'To' => $to,
'Subject' => $subject
);
$smtp = Mail::factory(
'smtp',
array(
'host' => $host,
'port' => $port,
'auth' => true,
'username' => $username,
'password' => $password
)
);
$mail = $smtp->send($to, $headers, $message);
if(PEAR::isError($mail))
{
$resultstring = "email sending error: " . $mail->getMessage();
}
else
{
$resultstring = "email sent to $to";
}
$ /opt/zimbra/bin/zmlmtpinject -s <source email> /opt/zimbra/data/amavisd/quarantine/banned-<reference code> -r <recipient email>
Got this while connecting to my mikrotik router via ssh Unable to negotiate with <ip address> port <ssh port>: no matching hos...