What are the necessary configurations in the php.ini file to enable mail sending in PHP?

To enable mail sending in PHP, you need to configure the `php.ini` file with the necessary settings for the `mail()` function to work properly. This includes setting the `SMTP` server address and port, as well as specifying the `sendmail_path` if using a sendmail program. Additionally, you may need to set the `sendmail_from` directive to specify the email address that will be used as the sender.

[mail function]
SMTP = smtp.example.com
smtp_port = 25
sendmail_path = /usr/sbin/sendmail
sendmail_from = me@example.com