locked
php mail RRS feed

  • Question

  • Hi ,

     I created  website using expression web   . when I try to add  php mail to the website .it is not sending any mails .previousely it worked but not its not  sending any mail .website is hosted on easycgi.

    <?php 
    $msg =$_POST['TextArea1'];
    $to="test @arge.com";
    $subject="Comment Posted";
    $number =$_POST['Text1'];
    if ($number==12)
    {
    mail($to,$subject,$msg);
    echo 'Thanks for the submission.';
    }
    else 
    {
    echo 'Did you answer the math question? Your comment was not sent.';
    }
    ?>
    

    Monday, August 4, 2014 7:52 PM

All replies

  • Your post is unclear. You say you are trying to add php mail to the website, but then you say it used to be working and now it's not. I don't know what to make of that.

    But...if it was working before and it's not now, it has nothing to do with Expression Web. Ask your website host what changed.

    Also, this isn't a PHP forum (although a few people use PHP). If your website host can't fix something that used to work, try a PHP forum.


    A horse walks into a bar. The bartender asks "Why the long face?"

    "Because I was born into servitude and when I die my hooves will be used to make glue."

    It was at this point that the bartender realized he would not be getting a tip.

    Tuesday, August 5, 2014 1:52 AM