PHP IMAP And SMTP Autoresponder

Description
A secure and production-ready PHP autoresponder designed for controlled email automation. The script reads incoming messages via IMAP (INBOX only) and sends plain-text replies through SMTP with advanced safety protections.
Built for cron/CLI environments, it prevents reply loops, bounce storms, and excessive sending while maintaining full control over rate limits and mailbox behavior.
The script uses a file-based state system and does not require a database, making deployment lightweight and simple.
Suitable for automated support inboxes, lead capture workflows, and structured auto-reply systems.
Features
- INBOX-only processing
- Plain-text autoresponses (no HTML)
- Multi-mailbox support
- Auto-reply loop protection
- Bounce detection
- Per-run, hourly, daily, and per-sender rate limits
- Sender cooldown control
- SMTP failure detection with cooldown protection
- File-based state directory (no database required)
- Optional Message-ID deduplication
- Log rotation by size
- Token-based browser execution control
- Cron/CLI optimized
- Single-instance lock (cron overlap protection)
- Optional recipient allowlist validation
Requirements
- PHP 8.0 or newer recommended
- PHP IMAP extension enabled
- OpenSSL enabled
- Outbound access to IMAP server (usually port 993)
- Outbound access to SMTP server (587 STARTTLS or 465 SSL)
- Write permissions for state directory and log files
- Cron access recommended for production use
Instructions
Installation & Usage
- Upload autoresponder.php to your server (preferably outside public web root).
- Configure IMAP and SMTP credentials in the $config section.
- Set reply_only_if_to_matches if recipient validation is required.
- Set a strong web_access_token for optional browser testing.
- Ensure the state directory is writable.
- Start with delete_after_reply = false for safe testing.
- Run via CLI or cron for production automation.
- After confirming correct behavior, optional automatic deletion can be enabled.
Important: When deletion mode is enabled, emails are permanently removed and may bypass the Trash folder. Always test carefully before activating.
| Author | ridisoft |
|---|---|
| Category | Scripts & Code / PHP Scripts / Mail |
| Price | $24 |
| Extended License | $72 |
| First Release | Feb 20, 2026 |
| Last Update | Feb 20, 2026 |
| Software version | PHP 8.0, PHP 8.1, PHP 8.2 |
Categories
Tags
External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.
Products of the Week.
Submit馃
Free LinkedIn Likes From Real Members | LinkedInLikes
Get free LinkedIn likes on your posts from real members who react by hand. No password needed: you only share a link.
Website 路 12,847 views 路 46 clicksWebsite 路 Week 49 路 12,847 views 路 46 clicks
馃
Free Medium Claps From Real Writers | MediumPlace
Free Medium claps on your stories from verified accounts of real writers, each given by hand. No bots, no Medium password, nothing to pay. Paste a link.
Website 路 7,964 views 路 10 clicksWebsite 路 Week 49 路 7,964 views 路 10 clicks
馃
Free GitHub Stars From Real Developers | GitWow
Get free GitHub stars on your repository from real developers who star by hand. No token or password, and it's free.
Website 路 15,624 views 路 28 clicksWebsite 路 Week 49 路 15,624 views 路 28 clicks
#4
Free Substack Likes From Real Writers | StackRooms
Free Substack likes on your posts and Notes from verified accounts of real writers, given by hand. Free to ask, free to receive. Just share a link.
Website 路 7,784 views 路 2 clicksWebsite 路 Week 49 路 7,784 views 路 2 clicks
#5
Free Twitter Likes From Real People | SupaTwitter
Free Twitter likes on your tweets from verified accounts of real people, each given by hand. No bots, no Twitter password, nothing to pay. Paste a link.
Website 路 7,679 views 路 4 clicksWebsite 路 Week 49 路 7,679 views 路 4 clicks
#6
Free X Likes From Real People, Given by Hand | XFast
Free X likes on your posts from verified accounts of real people, each one given by hand. No bots, no X password, no conditions. Paste a link to start.
Website 路 7,591 views 路 0 clicksWebsite 路 Week 49 路 7,591 views 路 0 clicks