What is the difference between using SMTP and using PHP’s mail() function?
I am having problem where a form mail on a website is not working. The email is being sent, just not getting to the inbox. The form mail script works if the destination email address is yahoo or other non-domain name email address. But fails when trying to send to a domain name email.
Would switching the script to use SMTP versus PHP mail make any difference?
That’s a hosting issue. Contact your host and they change the server settings. I had the exact same issue with UK2.net on a client domain earlier this month.
I have looked into this issue and it appears that the server was handling the mail locally for the domain name. To resolve this issue, I have set the server to handle the mail remotely.
I have tested the contact form and it appears that the form is functional. If you have any questions or require further assistance, please contact us and we will assist you. Thank you.
Please tell. What exactly was the misconfiguration on the server? I’ve been working on this problem for 4 days now.
I have tried turning on and off both DNS services and Mail services on the VPS server via Plesk. Tried everything I can think of.
I believe you are correct that there is a misconfiguration on the VPS server. The problem only started when I migrated from shared-hosting to VPS hosting.