PHP IMAP And SMTP AutoresponderPHP IMAP And SMTP Autoresponder
Secure multi-mailbox auto-reply script with loop protection, bounce detection, rate limits, and file-based state. No DB required.PHP IMAP And SMTP Autoresponder
Secure multi-mailbox auto-reply script with loop protection, bounce detection, rate limits, and f...
Overview
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.
|
PHP Script Installation Service
Don't worry about the installation of your script! Have your PHP Script installed for you.
|
$39 | Buy now |
| Category | Scripts & Code / PHP Scripts / Mail |
| First release | 20 February 2026 |
| Last update | 20 February 2026 |
| Software version | PHP 8.0, PHP 8.1, PHP 8.2 |
| Tags | php, smtp, autoresponder, no database, email automation, rate limiting, imap, cron script, backend tool, mail server, inbox processing, loop protection, bounce detection, server automation, file based |








