u know it is not gonna work if your server is not configured to send email without authorization.
better u login and fast!
That is true. The simple mail() function won't work if you need authentication in order to send e-mails.
However, most SMTP servers don't require any type of authentication. If anything, they just check to see that the origin of the message is from inside the network.
I've been able to use the mail() function perfectly fine on a free host (Frihost.com) and a paid host (ixwebhosting.com). Neither required SMTP authentication.
- Walkere