diff --git a/features/extra/no-mail.php b/features/extra/no-mail.php
index <HASH>..<HASH> 100644
--- a/features/extra/no-mail.php
+++ b/features/extra/no-mail.php
@@ -1,6 +1,7 @@
 <?php
 
-function wp_mail() {
-	// do nothing
+function wp_mail( $to ) {
+	// Log for testing purposes
+	WP_CLI::log( "WP-CLI test suite: Sent email to {$to}." );
 }
Prevent email notifications when users are created

Email notifications should only be sent when `--send-email` is provided.