How to send a mail from a PHP website running on a local host server?

i am a naive user of PHP, making a job portal website, running on a local host just now.i want to add the functionality for sending mails by the job seekers to the recruiters and vice-versa…

would like to seek help from your experts…
thank you

When you talk about a local host server, are you talking about your pc at home? Or the hosting server rented to your provided (meaning that the site is hosted in the same server where the database is)?

If you’re testing sending e-mails from your own computer, remberber that you need to have a smtp server installed and not only the libraries that allow you to send e-mails. If the library finds no smtp server associated, it will not be able to send anything.