#1
  1. No Profile Picture
    Robert_J_Sherman
    Guest
    Devshed Newbie (0 - 499 posts)
    Well, the subject is pretty much it...

    here's the code I'm using:
    $added_headers = "From: ".$from."nReply-To: ".$Email."nX-Mailer: PHP/SnR_POPMail/".phpversion();
    if (!mail($to, $from, $message, $added_headers)) {
    echo "<span class="poptext">Unable to Send Message!</span>";
    }
    else { echo "<span class="poptext">Message Sent</span>"; }

    Any thoughts on the problem??

    ------------------
    SnR Graphics,
    Low Cost Hosting and Web Development.
  2. #2
  3. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15
    Robert,

    just try a simple mail script and see what is gone wrong.

    test.php3

    <?php

    mail("youremail@mail.com", "Just a test", "GOD is Love!!");
    echo "Mail Program is Working Perfectly Finen";
    ?>





    ------------------
    SR -
    webshiju.com

    "The fear of the LORD is the beginning of knowledge..."
  4. #3
  5. No Profile Picture
    Robert_J_Sherman
    Guest
    Devshed Newbie (0 - 499 posts)
    Thanks for the reply.

    I think I realized what the problem is.


    PHP's mail() function is looking at my local server for a "mailer".. ie pop3 or imap server or "sendmail" to send.

    Since the function doesn't let you specify either the path to sendmail or smtp location.

    I think that would be a splendid edition to the function... unless there is another php function, that I have learned about yet..

    ------------------
    SnR Graphics,
    Low Cost Hosting and Web Development.

Similar Threads

  1. Mysql problem.
    By Nik in forum MySQL Help
    Replies: 54
    Last Post: December 21st, 2006, 06:02 PM
  2. Uploading Files
    By vivekjain in forum ASP Programming
    Replies: 0
    Last Post: February 16th, 2004, 11:21 PM
  3. General info on email and Postfix server
    By volks73 in forum Mail Server Help
    Replies: 3
    Last Post: February 8th, 2004, 04:38 PM
  4. database access using thread
    By padmini in forum Visual Basic Programming
    Replies: 3
    Last Post: February 6th, 2004, 12:38 AM
  5. Complete configuration guid about SMTP server !?
    By dodo502b in forum PHP Development
    Replies: 0
    Last Post: January 25th, 2004, 11:58 AM

IMN logo majestic logo threadwatch logo seochat tools logo