PHP mail function (2)
Hi I am using php mail function to send mails from my contact section. But the mails are not geting me. If i use gmail id its working but if I use any other email ids like hr@sbnphpjobs.com not geting.
Answers
It's better to use PHPMailer or Swift Mailer in combination with a smtp server (e.g. gmail). Mail send from php (mail()) is often seen as spam by a lot of spamfilters...
Your smtp server might only send email to a white list of domain name. I had the same issue with a customer smtp. We bought another solution to solve it.
Did you get a chance to check mail logs? There can be a hint to why mails are not going through. If you are running your own server, then a dedicated IP will make sure that you are not having an ip that is blocked by anti spam databases.