Visitor Messages

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chirag13lucky
    • Jun 2009
    • 0

    unable send mail.
    php.ini file
    SMTP = f3smtp.rediffma il.com
    smtp_port = 25
    ; For Win32 only.
    sendmail_from = chirag13lucky@r ediffmail.com

    mail.html file is
    <html>
    <head><title>Ma il sender</title></head>
    <body>
    <form action="mail.ph p" method="POST">
    <b>Email</b><br>
    <input type="text" name="email" size=40>
    <p><b>Subject </b><br>
    <input type="text" name="subject" size=40>
    <p><b>Message </b><br>
    <textarea cols=40 rows=10 name="message"> </textarea>
    <p><input type="submit" value=" Send ">
    </form>
    </body>
    </html>

    mail.php is
    <html>
    <head><title>PH P Mail Sender</title></head>
    <body>
    <?php
    # Retrieve the form data
    $email = $_POST['email'];
    $subject = $_POST['subject'];
    $message = $_POST['message'];
    # Sends mail and report success or failure
    if (mail($email,$s ubject,$message )) {
    echo "<h4>Thanks </h4>";
    } else {
    echo "<h4>Can't send email to $email</h4>";
    }
    ?>
    </body>
    </html>

    please advice me wht to do
Working...