It was my problem before.
1) check your PHP.INI settings
[mail function]
; For Win32 only.
SMTP = mail.verizon.com ; using my ISP's SMTP
;SMTP = 127.0.0.1 ; using my own SMTP
smtp_port = 25 ; your firewall must accept outgoing SMTP connection
2) Your SMTP server might require an authentication
3) You might be using your ISP's SMTP server. If that was the case, your ISP's SMTP server may require an authentication
4) Check your outbound firewall settings. Your firewall might be blocking your outgoing SMTP connection
5) Check your log files