Hi i m just figuring contact.php to send mail to myself for testing. But it seem that my mail server is not enabled. i pinged to mail.mydomain.com and returned error Ping request could not find host mail.mydomain.com Please check name and try again. So how can i enable it. i m running my website on VPS.
you'll need to add a dns entry for mail.yourdomain.com. You can try using the script with just your domain name.
Also check with your hosting provider...this configuration is usually setup for you already, unless you installed it yourself.
got msg form hosting provider We've added mail.downloadpremium.net DNS alias. Please verify. Code (markup):
Sorry for the double post. But it is important to tell the solution which i got for my hosting provider. He told me No mail package was installed on your VPS. Hence, when you tries to send e-mail it didn't know who to talk to to send out e-mails. We have to run "yum install sendmail". Code (markup):