Skip to content

Instantly share code, notes, and snippets.

@mnb3060
mnb3060 / testEmailServer.php
Created February 19, 2025 20:43 — forked from froemken/testEmailServer.php
Very simple PHP Script to test SMTP email server
<?php
// For port 24 host without scheme is just fine
// Add scheme, if using secure connection. Port 465 or 587
$host = 'ssl://smtp.strato.de';
//$host = 'tls://smtp.strato.de';
$port = 465;
//$port = 25;
$errorNumber;
$error;
$timeout = 10;