Installed XAMPP. Understand the configuration of mail. To get started, just launched the mail()
PHP function:
mail('mail@example.com', 'the subject', 'the message');
and looked into the server's [error_log]; there appeared such a record:
sh: 1: -t: not found
I only understand that sh
is a shell, and what does the rest mean, and why is it not found?
sendmail
, which I never figured out on the FQDN issue - so I set everything up viamsmtp
. Here's a great article: digitalocean.com/community/tutorials/how-to-use-gmail-or-yahoo-with-php-mail-function . - Roman Grinyov