Send a test email from the command line
send test email from server | is outgoing mail working | test php mail sending | sendmail | postfix | testprintf "Subject: Testmail von %s\n\nTest\n" "$(hostname -f)" | sendmail admin@example.comBuilds a minimal message with a subject and hands it to sendmail, exactly as PHP does with mail(). If the message does not arrive, the mail log shows the reason right afterwards. No package such as mailutils is needed.
Also searched as
- send test email from server
- is outgoing mail working
- test php mail sending