If you only use the mail()
function, you need to complete the configuration file.
You need to open the mail expansion, and set the SMTP smtp_port
and so on, and most important, your username and your password. Without that, mail cannot be sent. Also, you can use the PHPMail
class to send.