Browse Source

Initial commit

Dmitry Yu Okunev 4 years ago
commit
5f55cdee9c
4 changed files with 23 additions and 0 deletions
  1. 3 0
      .gitmodules
  2. 3 0
      README.md
  3. 16 0
      check_if_login_exists.php
  4. 1 0
      smtp-validate-email

+ 3 - 0
.gitmodules

@@ -0,0 +1,3 @@
+[submodule "smtp-validate-email"]
+	path = smtp-validate-email
+	url = https://github.com/zytzagoo/smtp-validate-email

+ 3 - 0
README.md

@@ -0,0 +1,3 @@
+```
+./check_if_login_exists.php tst012
+```

+ 16 - 0
check_if_login_exists.php

@@ -0,0 +1,16 @@
+#!/usr/bin/php
+<?php
+
+require('smtp-validate-email/smtp-validate-email.php');
+
+$from = 'test@imperium.mephi.ru'; // for SMTP FROM:<> command
+$email = $argv[1].'@campus.mephi.ru';
+//'campus-guard0@campus.mephi.ru';
+
+$validator = new SMTP_Validate_Email($email, $from);
+//$validator->debug=true;
+$smtp_results = $validator->validate();
+
+var_dump($smtp_results);
+
+?>

+ 1 - 0
smtp-validate-email

@@ -0,0 +1 @@
+Subproject commit a5ffd221eb0f1ac0a3ccd5dd90cfcf97acaa8e86