Search by

A trivial tool to test and debug SMTP connectivity using PHPMailer. Works standalone or as a Laravel artisan command.

Package info

github.com/mcarrowsmith/smtp-debug

pkg:composer/mcarrowsmith-packages/smtp-debug

Statistics

Installs: 13

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-11-18 12:40 UTC

This package is auto-updated.

Last update: 2026-11-18 12:43:03 UTC


README

A trivial SMTP connectivity tester built on PHPMailer. Sends a test email and dumps the full SMTP conversation.

Install

composer require --dev mcarrowsmith-packages/smtp-debug

Laravel

The service provider is auto-discovered. The command uses the SMTP credentials already configured in config/mail.php / .env (MAIL_HOST, MAIL_PORT, MAIL_USERNAME, MAIL_PASSWORD, MAIL_FROM_ADDRESS, ...):

php artisan smtp:debug you@example.com

Use a different configured mailer, or change verbosity:

php artisan smtp:debug you@example.com --mailer=ses-smtp --level=4

Standalone CLI

vendor/bin/smtp-debug --host=smtp.example.com --port=587 \
  --username=user --password=secret \
  --from=me@example.com --to=you@example.com --encryption=tls --level=3

In code

use McArrowsmithPackages\SmtpDebug\SmtpDebugger;

SmtpDebugger::send('smtp.example.com', 587, 'user', 'secret', 'me@example.com', 'you@example.com');

Options

Option Values Default
encryption tls (STARTTLS), ssl, none tls
level 0–4 3