*参考
http://berk.es/2011/05/29/mailcatcher-for-drupal-and-other-php-applications-the-simple-version/
which catchmail
/usr/local/bin/catchmail
php.ini
sendmail_path = "/usr/bin/env /usr/local/bin/catchmail"
systemctl restart httpd.service
メールテスト
*参考
https://www.conetix.com.au/support/article/simple-php-mail-test
<?php
ini_set( 'display_errors', 1 );
error_reporting( E_ALL );
$from = "emailtest@YOURDOMAIN";
$to = "YOUREMAILADDRESS";
$subject = "PHP Mail Test script";
$message = "This is a test to check the PHP Mail functionality";
$headers = "From:" . $from;
mail($to,$subject,$message, $headers);
echo "Test email sent";
?>