Skip to content

PHP sendmail() Test

What it does: Sends a simple email using mail() to confirm outbound mail is configured.

Code

<?php
$to = 'email@example.com';
mail($to,'Test','Hello');
?>

Open script →

Live Demo

Open mail test →

Live preview runs /scripts/mailtest.php.

← Back home