SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2009
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    fail in sending message to email..

    hi guys i always fail in sending a message to an email, i've try to use many way like..
    ...
    $kirim_email=mail($kepada,$judul,$pesan,$dari);
    if($kirim_email){
    echo "[success]";
    }else{
    echo "[fail]";
    }
    ...

    i've try to edit php.ini..
    ...
    extension=php_smtp.dll
    SMTP = localhost
    smtp_port = 25
    sendmail_path = "D:\xampp\sendmail\sendmail.exe -t"
    ...

    but still error and there is message...

    Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\xampp\htdocs\email\index.php on line 81

    can anybody fix my problem..? need help my master very much, thanks..

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,167
    Mentioned
    453 Post(s)
    Tagged
    8 Thread(s)
    I'm not sure of the possibilities here, but I have the idea that sending email from your local environment with mail() doesn't work (or at least requires something extra). What happens if you try this from a remote server?


Bookmarks

Posting Permissions

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