I have a problem with the mail function and I was wondering if anyone could have any idea of why it happens. I just want to send an e-mail (some code that I will use in a bigger php prog) and when I send it to my hotmail account the e-mail is delivered no problem and I can go read it. But if I send it to my e-mail account or even to a yahoo e-mail account for example, the e-mail will never get to destination.
I suppose it could be some kind of config problem, but anyone has any idea what?
Here is the code I use for send mail part (done in a file just for test):