Skip to content
Advertisement

How i can fix mail() function on PHP?

I use the Internet Information Services(IIS) with PHP. But the mail() function doesn’t seem to be working. At first I tried to fix the php.ini. Then I downloaded hMailServer. Now it shows “Your message has been sent!” but I haven’t got any messages in my inbox. I also checked the SPAM inbox. But I can’t find anything.

JavaScript

Advertisement

Answer

Your 4 Parameter($from) is wrong because it expects an string with header information. you only post a email into it. cange your $from to:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement