Ana Sayfa / Kod ve Scriptler / PHP IMAP And SMTP Autoresponder

PHP IMAP And SMTP Autoresponder

Döngü koruması, geri dönen e-posta tespiti, hız sınırları ve dosya tabanlı durum içeren güvenli çoklu posta kutusu otomatik yanıt scripti. Veritabanı gerekmez.

  • Yayın tarihi20 Şubat 2026
  • Nerede çalışırPHP 8.0, PHP 8.1, PHP 8.2
  • Son güncelleme20 Şubat 2026
PHP IMAP And SMTP Autoresponder

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