I haven’t found a coherent answer to my quesion here 🙁
My server’s ISP has blocked the default SMTP port, so I need to switch it manually from 25 to 587.
mail("example@example.com","Hello","World"); //This uses the default value
PS.
I don’t know why the answer had been removed – that link was very useful… however, I suppose it could be accomplished in simplier way.
On Windows, SMTP settings used by the
mailfunction are defined in php.ini file (smtp section). Either edit the file and make necessary changes or useini_setfunction.