Results 1 to 2 of 2

Thread: mail function

  1. #1
    Join Date
    Jun 2008
    Location
    pakistan
    Posts
    109

    Unanswered: mail function

    give me the correct statement of sending mail using php mail function is this right or some thing wrong only write correct coding please
    my coding is this and now tell me my coding is correct or not
    PHP Code:
    <?php
    $to 
    "don_log2003@yahoo.com";
    $subject "Test mail";
    $message "Hello! This is a simple email message.";
    $from "don_log2003@yahoo.com";
    $headers "From: $from";
    if(
    mail($to,$subject,$message,$headers)){
    echo 
    "Mail Sent.";
    }
    else
    {
    echo 
    "Mail not send.";
    }

    ?>

  2. #2
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    what does da manual suggest?
    PHP: mail - Manual

    PHP: Mail - Manual

    there are differences between the *NIX and Windows implementations
    I ended up using a mail class, which IIRC came from PHPClasses
    I'd rather be riding on the Tiger 800 or the Norton

Posting Permissions

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