Giter Club home page Giter Club logo

php-smtp-email-validation's People

Contributors

bucabay avatar

php-smtp-email-validation's Issues

SMTP SSL / TLS issue?

What steps will reproduce the problem?
1. Try validating an address whose mailservers require SSL/TLS

It looks like if the SMTP server is expecting STARTTLS the script just bombs 
out because it doesn't get the initial header. Debug output (e.g. for a valid 
@sun.ac.za address):

---
Array
(
    [mail2.sun.ac.za] => 10
    [mail1.sun.ac.za] => 10
    [mail3.sun.ac.za] => 10
    [sun.ac.za] => 0
)

try mail2.sun.ac.za:25

<<<

---

Telnetting to the top server on port 25 does not return any headers, and so I 
presume it's waiting for the client to initiate SSL/TLS.

Is it easy to change the script to detect this and use SSL/TLS on servers that 
seem to require it?

Original issue reported on code.google.com by [email protected] on 14 May 2012 at 10:54

Wrong report

What steps will reproduce the problem?
$email = '[email protected]';
$SMTP_Validator = new SMTP_validateEmail();
$SMTP_Validator->debug = true;
$results = $SMTP_Validator->validate(array($email));
echo $email.' is '.(isset($results[$email]) ? 'valid' : 'invalid')."\n";

What is the expected output? What do you see instead?
Expected:
[email protected] is invalid

Effective:
Array
(
    [gmail-smtp-in.l.google.com] => 5
    [alt1.gmail-smtp-in.l.google.com] => 10
    [alt2.gmail-smtp-in.l.google.com] => 20
    [alt3.gmail-smtp-in.l.google.com] => 30
    [alt4.gmail-smtp-in.l.google.com] => 40
    [gmail.com] => 0
)
try gmail-smtp-in.l.google.com:25
<<<
220 mx.google.com ESMTP n7si24377456wiy.46
>>>
HELO localhost
<<<
250 mx.google.com at your service
>>>
MAIL FROM: <user@localhost>
<<<
250 2.1.0 OK n7si24377456wiy.46
>>>
RCPT TO: <[email protected]>
<<<
550-5.1.1 The email account that you tried to reach does not exist. Please try
550-5.1.1 double-checking the recipient's email address for typos or
550-5.1.1 unnecessary spaces. Learn more at
550 5.1.1 http://support.google.com/mail/bin/answer.py?answer=6596 
n7si24377456wiy.46
>>>
RSET
<<<
250 2.1.5 Flushed n7si24377456wiy.46
>>>
quit
<<<
221 2.0.0 closing connection n7si24377456wiy.46
[email protected] is valid

What version of the product are you using? On what operating system?
PHP 5.4.4.0
php-smtp-email-validation: Alpha1

Thanks for your work!

Original issue reported on code.google.com by [email protected] on 14 Aug 2012 at 9:00

Blacklisted by Hotmail but OK with Gmail/AOL

First of all, amazing script. It would've taken me a ton of time to write, but 
I had this up and running in a matter of minutes.

I currently loop through names trying to validate them on different common 
email domains -- Gmail, Hotmail, and AOL.

This worked for a little while, but Hotmail seems to have banned me. I'm 
wondering how to get around this.

I receive this message from Hotmail:

try mx2.hotmail.com:25
<<<
220 BAY0-MC1-F53.Bay0.hotmail.com Sending unsolicited commercial or bulk e-mail 
to Microsoft's computer network is prohibited. Other restrictions are found at 
http://privacy.microsoft.com/en-us/anti-spam.mspx. Sun, 6 Apr 2014 10:43:00 
-0700 
>>>
HELO (my domain)
<<<
250 BAY0-MC1-F53.Bay0.hotmail.com (3.19.0.77) Hello (my IP)
>>>
MAIL FROM: <no-reply@(my domain)>
<<<
550 SC-002 (BAY0-MC1-F53) Unfortunately, messages from (my IP) weren't sent. 
Please contact your Internet service provider since part of their network is on 
our block list. You can also refer your provider to 
http://mail.live.com/mail/troubleshooting.aspx#errors.

That link leads to a definition of 550 SC-002 of "The mail server IP connecting 
to Outlook.com has exhibited namespace mining behavior."

How can I avoid this?



Original issue reported on code.google.com by [email protected] on 6 Apr 2014 at 5:54

Check Rejected

What steps will reproduce the problem?
1. Installed on local system
2. Changed Example 1 to include my valid email address
3. Ran example1.php

What is the expected output? What do you see instead?
Valid,

Your access to this mail system has been rejected due to the sending MTA's poor 
reputation. If you believe that this failure is in error, please contact the 
intended recipient via alternate means.

invalid

What version of the product are you using? On what operating system?
version 0.1a

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 5 Apr 2012 at 2:19

can I add External SMTP to the script?

Hi

running script on single smtp ( local host ) may blacklist the IP.... So can I 
use multiple SMTP or external SMTP ( with credentials ) with the script? so it 
would be easier to work on....

Original issue reported on code.google.com by [email protected] on 10 May 2014 at 10:11

Connection Refused

I am running into this error, and I am not sure how to approach this problem:

Array
(
    [postcardpros.com.s7a1.psmtp.com] => 100
    [postcardpros.com.s7a2.psmtp.com] => 200
    [postcardpros.com.s7b1.psmtp.com] => 300
    [postcardpros.com.s7b2.psmtp.com] => 400
    [postcardpros.com] => 0
)

try postcardpros.com.s7a1.psmtp.com:25


Warning: fsockopen() [function.fsockopen]: unable to connect to
postcardpros.com.s7a1.psmtp.com:25 (Connection refused) in
/home/jakoblor/public_html/hosted/play/validate-email/stmp_validate.php on
line 154

try postcardpros.com.s7a2.psmtp.com:25


Warning: fsockopen() [function.fsockopen]: unable to connect to
postcardpros.com.s7a2.psmtp.com:25 (Connection refused) in
/home/jakoblor/public_html/hosted/play/validate-email/stmp_validate.php on
line 154

try postcardpros.com.s7b1.psmtp.com:25


Warning: fsockopen() [function.fsockopen]: unable to connect to
postcardpros.com.s7b1.psmtp.com:25 (Connection refused) in
/home/jakoblor/public_html/hosted/play/validate-email/stmp_validate.php on
line 154

try postcardpros.com.s7b2.psmtp.com:25

Original issue reported on code.google.com by [email protected] on 14 Jun 2009 at 6:22

How to add multithread ??

What steps will reproduce the problem?
1. Current it run and very slow
2. How to add multithread to this tool




Original issue reported on code.google.com by [email protected] on 14 Sep 2012 at 12:43

Don't validate some existent email

What steps will reproduce the problem?
1. Validate a large group of email
2.
3.

What is the expected output? What do you see instead?
Validation of correct and existent email.
Instead I see that a lot of existent email address don't be validated (400
of 800).

What version of the product are you using? On what operating system?
last

Please provide any additional information below.
Email addresses not validated  are a lot of email of my friend, so I'm sure
these are valid!
I used the code of the second example.

Original issue reported on code.google.com by [email protected] on 26 Apr 2010 at 7:52

4xx temporary errors result in failed validation

While testing the php-smtp-email-validation r3 against a random set of
email addresses from a large collection i found some problems with 4xx
error code handling. Graylisting and overloaded SMTP servers seem to be the
top troublemaker for reliable validation.

These example SMTP status codes resulted in validation errors, even tough
the email address might exist: 

451 Greylisted.  Please try again in 4 minutes.

421 mail.domain.com: Too many concurrent SMTP connections; please try again
later.

450 <[email protected]>: Recipient address rejected: Greylisted, please
try again later!

Most of the time this isn't a problem, but relying on smtp validation
before accepting email addresses might not work for everybody.

Original issue reported on code.google.com by [email protected] on 10 Dec 2008 at 12:30

when added duplicate records in array

What steps will reproduce the problem?
1. Added a 200 emails in array.
2. in array some records are duplicate
3. in this case all emails results displayed invalid.
4. how many mails will validate in bulk? any limit for passed in array? 
Duplicate emails solution?

What is the expected output? What do you see instead?
if i passed duplicate records then will display proper result instead of all 
emails are invalid.

What version of the product are you using? On what operating system?
using your smtp_validator class for one contact us form in core PHP site.


Please provide any additional information below.

Please suggest me
Thanks,
Krunal Darji

Original issue reported on code.google.com by [email protected] on 24 Feb 2014 at 5:33

Broken pipe error

I am using a csv file of 34K+ emails.
I am using Zend Email Validator to validate the email pattern then correct 
email addresses are validated using SMTP_validateEmail but it says "Notice: 
fwrite(): send of 33 bytes failed with errno=32 Broken pipe in 
/var/www/html/emailvalidator/SMTP_validateEmail.class.php on line 215"

Original issue reported on code.google.com by [email protected] on 19 Mar 2012 at 5:49

problem with greylisting

What steps will reproduce the problem?
1. Input address from server with greylisting
2. use the script

What is the expected output? What do you see instead?
450 4.2.0 <anadress>: Recipient address rejected: Greylisted, see 
http://postgrey.schweikert.ch/help/domain.html

then:
anaddress is invalid The email addresses you entered is not valid 

(an address is the replace for an valid address)

What version of the product are you using? On what operating system?
version 0.1a



Original issue reported on code.google.com by [email protected] on 29 Feb 2012 at 12:01

Error when you try valid invalid "domain name".

What steps will reproduce the problem?
1. Try to valid an invalid domain name exp. "[email protected]"


What is the expected output? What do you see instead?
PHP Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: No 
host


What version of the product are you using? On what operating system?
Last

Please provide any additional information below.
Error at:

       if ($this->sock = fsockopen($host, $this->port, $errno, 
$errstr, (float) $timeout)) {
        stream_set_timeout($this->sock, $this->max_read_time);
        break;
       }

Original issue reported on code.google.com by studiofaca on 24 Jan 2010 at 12:27

How can I connect the script with external SMTP

Hi

I want to use MTA validation using external SMTP ( username, Password, Port and 
external host )...

In the given code I did not see anything to connect using password...

Please advise...

Thanks
Bhavik

Original issue reported on code.google.com by [email protected] on 4 Dec 2014 at 5:00

mail not receiving in local machi

Hi,
I have tested this script in my local machi. I have configured sender and 
receiver mail id. while executing the program, working everything well.

But still not received any mail. how long it will take to receive mail. Or it 
doesnt work in local machine..

thanks for your reply...

http://www.ndot.in

Original issue reported on code.google.com by saranraj.cmr2 on 28 Jan 2011 at 7:04

timeout on smtp

What steps will reproduce the problem?
1. require_once './smtpvalidate.class.php';

// Capture the proposed email and attempt to validate it
$email = $data['email'];

$emailvalidate = new SMTP_validateEmail();
$emailvalidate->debug = FALSE;

$result = $emailvalidate->validate(array($email));
if (!$result[$email])
{
    trigger_error($email.' is '.($result ? 'valid' : 'invalid')."\n");
} 

What is the expected output? What do you see instead?
The error in the trigger_error statement. 

[phpBB Debug] PHP Notice: in file /smtpvalidate.class.php on line 154:
fsockopen() [function.fsockopen]: unable to connect to
gmail-smtp-in.l.google.com:25 (Connection timed out)
[phpBB Debug] PHP Notice: in file /smtpvalidate.class.php on line 154:
fsockopen() [function.fsockopen]: unable to connect to
alt2.gmail-smtp-in.l.google.com:25 (Connection timed out)
[phpBB Debug] PHP Notice: in file /smtpvalidate.class.php on line 154:
fsockopen() [function.fsockopen]: unable to connect to
alt1.gmail-smtp-in.l.google.com:25 (Connection timed out)
[phpBB Debug] PHP Notice: in file /smtpvalidate.class.php on line 154:
fsockopen() [function.fsockopen]: unable to connect to
gsmtp183.google.com:25 (Connection timed out)
[phpBB Debug] PHP Notice: in file /smtpvalidate.class.php on line 154:
fsockopen() [function.fsockopen]: unable to connect to
gsmtp147.google.com:25 (Connection timed out)
[phpBB Debug] PHP Notice: in file /smtpvalidate.class.php on line 154:
fsockopen() [function.fsockopen]: unable to connect to gmail.com:25
(Connection timed out)

What version of the product are you using? On what operating system?
Current. Cent OS

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 4 Feb 2009 at 8:19

PHP SMTP Email Validation with MySQL support to update fields based on email OK or NOT OK?

What steps will reproduce the problem?
NONE


What is the expected output? What do you see instead?
Variables needed to store these: $code 250, $code 200, etc...
I would like to know what they are or how to get them?
couldn't I just do this:

if ($code == '250') {
// you received 250 so the email address was accepted
$results[$user.'@'.$domain] = true;

// add update statement here??

} elseif ($code == '451' || $code == '452') {
// you received 451 so the email address was greylisted (or some temporary 
error occured on the MTA) - so assume is ok
$results[$user.'@'.$domain] = true;

// add update statement here??

} else {
$results[$user.'@'.$domain] = false;

// add delete statement here?? 

}


What version of the product are you using? On what operating system?
Latest version on my hosts linux box.

Please provide any additional information below.
need to validate email addresses, having that info will help me know what to 
keep and what to delete.

Original issue reported on code.google.com by [email protected] on 11 Jun 2010 at 7:04

unable to connect to cisco.com:25 (No route to host)

What steps will reproduce the problem?
1. try validating addresses such as [email protected] OR [email protected]
2.
3.

What is the expected output? What do you see instead?
expect valid/invalid
instead I get this error:
PHP Warning: fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: 
unable to connect to cisco.com:25 (No route to host) in 
/var/www/vhosts/xxxxxx/yyyyzzz/smtp_validateEmail.class.php on line 154

What version of the product are you using? On what operating system?
version 0.1a
OS = Fedora

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 19 Jan 2012 at 3:08

Whole thing doesn't work

What steps will reproduce the problem?
1. Upload example1.php to server and the class
2.
3.

What is the expected output? What do you see instead?
Class times out when fsockopen is called.

What version of the product are you using? On what operating system?
Latest

Please provide any additional information below.
The error is because MX server records are not the same as smtp servers.

Original issue reported on code.google.com by [email protected] on 6 Feb 2011 at 10:02

No space after colon on MAIL FROM and RCPT TO

What steps will reproduce the problem?
1. Run code

Please provide any additional information below.

RFC821 Section 3.1 clearly states the specific format of the MAIL FROM and
RCPT TO commands included where spaces should and shouldn't be.
There clearly should NOT be a space between the colon and the < in each of
these commands.




Original issue reported on code.google.com by [email protected] on 13 May 2010 at 10:45

validation is failing with a valid hotmail address

When I try to validate a functional email address (hotmail), validation fails.

on my local apache server (ssl enabled) the validation doesn't fail.
on the remote server (webhosting - where I don't have access to php.ini) the 
validation fails.
What can be wrong?

I attached my validation script.

Thank you.

Note: I am really not sure if this the correct place to post such questions. 
Please let me know.


Original issue reported on code.google.com by [email protected] on 26 Feb 2013 at 12:57

465 [SMTP: Failed to connect socket:

Hello ! i am using google apps to sending email
as mail.domain.com
there is a signup form on my web, it has a function to send confirmation mail 
to user, but it can't send mail, error showing lik this.
i tried to used 83,587, 583 port
465 [SMTP: Failed to connect socket: A connection attempt failed because the 
connected party did not properly respond after a period of time, or 
established connection failed because connected host has failed to respond. 
(code: -1, response: )]
can anyone help me.....

i attached my script register.php

Original issue reported on code.google.com by [email protected] on 11 Nov 2009 at 10:19

Attachments:

Doesn't validate yahoo email addresses

What steps will reproduce the problem?
1. use any @yahoo.com addresses
2.
3.

What is the expected output? What do you see instead?
valid always

What version of the product are you using? On what operating system?
Ubuntu 9.09

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 27 Oct 2009 at 4:44

Use php-smtp-email-validation code fetch problem

Array
(
    [gmail-smtp-in.l.google.com] => 5
    [alt1.gmail-smtp-in.l.google.com] => 10
    [alt2.gmail-smtp-in.l.google.com] => 20
    [alt3.gmail-smtp-in.l.google.com] => 30
    [alt4.gmail-smtp-in.l.google.com] => 40
    [gmail.com] => 0
)
try gmail-smtp-in.l.google.com:25
try alt1.gmail-smtp-in.l.google.com:25
try alt2.gmail-smtp-in.l.google.com:25
try alt3.gmail-smtp-in.l.google.com:25
try alt4.gmail-smtp-in.l.google.com:25
try gmail.com:25
[email protected] is invalid The email addresses you entered is not valid

Original issue reported on code.google.com by [email protected] on 31 Oct 2013 at 12:54

Great JOB guys

Sorry, this is NOT a defect report but just a thanks for such a sleek 
application. I was going to code it hard way for past 6 hours and suddenly 
stumbled this one.... What a time-saver !!! I literally had required results in 
less than 60 seconds :)

Original issue reported on code.google.com by [email protected] on 3 Feb 2012 at 1:30

Problem with few other domains

What steps will reproduce the problem?
1. [email protected]
2. [email protected]
3.

though test may not exist, even if a valid address is given to such
domains, it still gives them as invalid

What is the expected output? What do you see instead?
IF given a valid mail id, expected to see that it was valid, instead it
gave as invalid.


What version of the product are you using? On what operating system?
Downloaded the source code that's provided here. Using on CentOS.

Please provide any additional information below.
For bridgeport domain it gave a return code of 503
and for comcast it did not return any code, though for both the initial
connection was established

Original issue reported on code.google.com by [email protected] on 16 Feb 2010 at 8:55

would it be detected for spam ?

I'm concerned about this script that would be detected from hosting server to 
check me as spam user when i try to run many emails in my hosting

Original issue reported on code.google.com by [email protected] on 29 Mar 2012 at 11:19

Invalid emailaddresses are invalid once, the 2nd time the script runs they are count as valid

I am testing example1.php and example2.php. When I enter an invalid address, 
e.g. [email protected], 'The email addresses you entered is not valid' will be 
returned, as it should. However, when i refresh, the address is valid all of a 
sudden. It also stays valid, while it isn't.

I am using the lastest version, downloaded today on multiple servers and 
localhost.

Original issue reported on code.google.com by [email protected] on 18 Aug 2014 at 11:38

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.