Results 1 to 3 of 3
  1. #1

    PHP Sending Email problem Please Help

    Hello,

    My provider is using CPanel

    i upload that php script but shows email sent but never sent
    Can you please let me know if i have error in my script:

    <?php

    if ($address=="") {

    echo "<form action=\"mailtest.php\" method=get><p>Address to email: <input type=text name=address></p>";
    echo "<p><input type=submit value=\"Send email\"></p>";

    } else {

    $subject = "Testing mail() function";
    $message = "This is a test email";

    mail($address,$subject,$message,"From: \"Mail Test\" <$address>");

    echo "<p>Mail sent.";
    }
    ?>



    Thanks Alot

  2. #2
    Maybe you should test it out and see if values like $address actually have an email in them.

  3. #3
    Join Date
    Sep 2001
    Location
    Pune, Maharashtra, India.
    Posts
    24
    Yep!
    Print is just before the mail function.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •