In this example, replace firstname.lastname@example.org with the email address of the recipient, and email@example.com with the email address of the sender. You can also customize the subject and message to your needs.
Note that the mail() function relies on your server’s configuration to send email. If you encounter issues, you may need to check with your hosting provider or system administrator. Additionally, using mail() function can be subject to abuse and spamming, so it’s important to use it responsibly and securely.