Skip to content

Instantly share code, notes, and snippets.

View Cindy91's full-sized avatar
🎯
Focusing

Cindy91

🎯
Focusing
View GitHub Profile
@froemken
froemken / testEmailServer.php
Last active January 8, 2024 01:20
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;