Skip to content

souravkr529/eMail-Finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ง Email Finder API

Version PHP Version License Stars

Find anyone's email address using their name and domain via SMTP verification


โšก Quick Start

curl "http://YOUR_SERVER/email-api.php?name=John+Doe&domain=example.com"

Response:

{
  "status": "ok",
  "email": "john.doe@example.com",
  "confidence": 100,
  "verification_status": "verified"
}

โœจ Features

Feature Description
๐Ÿ” Smart Pattern Matching 60-180+ email patterns tested automatically
โšก Batch SMTP Verification 2x faster with batch processing
โœ… Triple Verification 3 checks for 100% confidence
๐Ÿ’พ Smart Caching Instant response for repeated queries
๐Ÿ›‘ Early Exit Stops immediately when valid email found
๐Ÿ‡ฎ๐Ÿ‡ณ Indian Name Support Handles 2-5 word names perfectly

๐Ÿ“– How It Works

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  1. Cache   โ”‚โ”€โ”€โ”€โ”€โ–ถโ”‚  2. Catch-All โ”‚โ”€โ”€โ”€โ”€โ–ถโ”‚  3. Name Parse  โ”‚
โ”‚   Check     โ”‚     โ”‚   Detection   โ”‚     โ”‚                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                                  โ”‚
                                                  โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  6. Return  โ”‚โ—€โ”€โ”€โ”€โ”€โ”‚  5. Triple   โ”‚โ—€โ”€โ”€โ”€โ”€โ”‚  4. Batch SMTP  โ”‚
โ”‚   & Cache   โ”‚     โ”‚   Verify     โ”‚     โ”‚   Verification  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿš€ API Reference

Parameters

Parameter Required Description
name โœ… Yes Full name of the person
domain โœ… Yes Email domain (e.g., example.com)
verbose โŒ No Set to 1 for detailed response
skip_cache โŒ No Set to 1 to force fresh search
timeout โŒ No SMTP timeout in seconds (default: 12)

Response Codes

Status Confidence Meaning
verified 100% Email confirmed (3/3 checks passed)
verified 85% Likely valid (2/3 checks passed)
risky 70% Rate limited but likely exists
risky 40% Catch-all domain detected
not_found - No valid email found

๐Ÿ“ฆ Installation

Requirements

  • PHP 7.4+
  • Apache/Nginx
  • Port 25 outbound open

Setup

# 1. Clone the repository
git clone https://github.com/souravkr529/eMail-Finder.git

# 2. Navigate to directory
cd eMail-Finder

# 3. Create cache file
echo "{}" > email_cache.json

# 4. Create log directories
mkdir -p logs/{failed,timeout,error,ratelimit}

# 5. Set permissions
chmod 666 email_cache.json
chmod -R 777 logs/

๐Ÿ“ Examples

Basic Search

curl "http://server/email-api.php?name=John+Doe&domain=example.com"

Skip Cache (Fresh Search)

curl "http://server/email-api.php?name=John+Doe&domain=example.com&skip_cache=1"

Verbose Output

curl "http://server/email-api.php?name=John+Doe&domain=example.com&verbose=1"

POST Request

curl -X POST -H "Content-Type: application/json" \
  -d '{"name":"John Doe","domain":"example.com"}' \
  http://server/email-api.php

๐Ÿ“Š Email Patterns

2-Word Names (60+ patterns)

first.last    โ†’ john.smith
flast         โ†’ jsmith
f.last        โ†’ j.smith
firstlast     โ†’ johnsmith
lfirst        โ†’ sjohn     (common in India)
first         โ†’ john
last          โ†’ smith

3-Word Names (90+ patterns)

first.mid.last  โ†’ john.michael.smith
fmid            โ†’ nmichael
mid             โ†’ michael
midlast         โ†’ michaelsmith

๐Ÿ”ง Configuration

Edit email-api.php:

$CFG = [
    'from_domain'    => 'verify.example.com',
    'max_retries'    => 2,
    'jitter_ms'      => [100, 300],
    'logs_enabled'   => true,
];

๐Ÿ“ File Structure

eMail-Finder/
โ”œโ”€โ”€ email-api.php          # Main API file
โ”œโ”€โ”€ email_cache.json       # Cache storage
โ”œโ”€โ”€ README.md              # Documentation
โ””โ”€โ”€ logs/
    โ”œโ”€โ”€ failed/            # No email found
    โ”œโ”€โ”€ timeout/           # Processing > 3 min
    โ”œโ”€โ”€ error/             # PHP errors
    โ””โ”€โ”€ ratelimit/         # 450 rate limits

โš ๏ธ Rate Limiting

If you see 450 errors:

  1. Restart Server - Get new IP
  2. Wait - Greylisting clears in few hours
  3. IP Rotation - Use AWS Lambda for automatic rotation

๐Ÿ“ˆ Performance

Metric Value
Batch Size 2 emails/connection
Speed Improvement 2-3x faster
Triple Verify Time ~3 seconds
Cache Response Instant

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.


๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


โญ Star History

If you find this project useful, please consider giving it a โญ!


Made with โค๏ธ by Sourav Kumar

About

PHP Email Finder API - Find anyone's email using name + domain via SMTP verification. Features: 60-180 email patterns, batch SMTP (2x faster), triple verification, smart caching, Indian name support. Returns verified email with confidence score.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages