class Pman_Core_NotifySmtpCheck extends Pman
{
+ function get()
+ {
+ $this->check();
+ }
+
function check()
{
$ff = HTML_FlexyFramework::get();
$helo = $this->getHelo();
- $error = array('test');
+ echo "HELO : {$helo} \n";
+
+ $error = array();
foreach ($ff->Core_Notify['routes'] as $server => $settings){
if(empty($settings['domains']) || empty($settings['username']) || empty($settings['password'])){
$smtp = new Net_SMTP($server, $settings['port'], $helo, false, 0, $socket_options);
+// $smtp->setDebug(true);
+
+ echo "Connecting : {$server}:{$settings['port']} \n";
+
$res = $smtp->connect(10);
if (is_a($res, 'PEAR_Error')) {
continue;
}
+ echo "Login As : {$settings['username']}:{$settings['password']} \n";
+
$res = $smtp->auth($settings['username'], $settings['password']);
if (is_a($res, 'PEAR_Error')) {