Email not working

If email is not sending out from vshare, the problem will be in your mail server or mail server is not configured properly to relay mails from PHP scripts.

To verify if PHP scripts can send mails on your web server, download

http://buyscripts.in/vshare/test_mail.zip

Unzip the file, upload it to your web server, then go to url

http://yourdomain.extn/test_mail.php

Replace "" with your own email address. Click the button "Send Test Email"

Now check your email account and see if you got a test email.

If not, you have problem with your mail server. Contact your web host or admin admin.

Following is code for test_mail.php

<html>
<body>

<?php

if(isset($_POST['submit'])) {

    if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$",$_POST['email'])) {
        mail($_POST['email'],"Test Mail","Test mail from server");
        echo 'Mail send to';
    } else {
        echo 'Invalid email format';
    }

    echo ' ' .  $_POST['email'];

} else {

?>

    <form method="POST" action="">
    Enter your email:  <br> <br>
    <input name="email" type="text" value="you@isp.com"> <br> <br>
    <input type="submit" name="submit" value="Send Test Email">
    </form>

<?php

}

?>

<br>

</body>
</html>

ERRORS
HOWTO