Rss Feed


  1. Only have to modify 2 ini files: php.ini and sendmail.ini
    1)look for mail function in php.ini(c:/xampp/php/php.ini)>>[mail function]
    change the following::
    SMTP=smtp.gmail.com
    smtp_port=587

    sendmail_from = [your_gmail_username]@gmail.com       
    sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"

    NOTE: remove ; if it present before above lines.

    2) next modify sendmail.ini(c:/xampp/sendmail/sendmail.ini)
    comment the mercury as shown below
    # Mercury
    #account Mercury
    #host localhost
    #from postmaster@localhost
    #auth off
    # A freemail service example
    #account Hotmail
    #tls on
    #tls_certcheck off
    #host smtp.live.com
    #from [exampleuser]@hotmail.com
    #auth on
    #user [exampleuser]@hotmail.com
    #password [examplepassword]
    then paste the following lines:
    account Gmail
    tls on
    tls_certcheck off
    host smtp.gmail.com
    from [your_gmail_username]@gmail.com
    auth on
    user[your_gmail_username]@gmail.com
    password x
    port 587
    # Set a default account
    account default : Gmail

    Again SAVE your changes.
    Use the code below to test if it's working!
    <?php
    $subject="Test mail";
    $to="someone@whatever.com";
    $body="This is a test mail";
    if (mail($to,$subject,$body))
    echo "Mail sent successfully!";
    else
    echo"Mail not sent!";
    ?>


    Refer:
    http://www.daniweb.com/web-development/php/threads/347696/sending-email-from-localhost-in-xampp-windows
    http://expertester.wordpress.com/2010/07/07/how-to-send-email-from-xampp-php/

  2. 4 comments:

    1. take_a_try said...

      I have a personal website please tell me how to test it for email from xampp

    2. Unknown said...

      Hello Prathap,

      A spot on observation on what probably is “the” underlying details of SMTP configuration in Xampp server to send email in php. Too many people don’t even think about wherever there will be actual demand and more importantly what happens if this demand comes later (or maybe a lot later) than they expect

      I know this question has been answered numerous time, but I can't seem to find a right Linux OS for it. Zombie is a process state when the child dies before the parent process. In this case the structural information of the process is still in the process table.
      Just wondering if there are any other browsers available for MintPPC/Linux Mint, besides Ice weasel and Midori. Preferably one that has been altivec or vector accelerated.
      By the way do you have any YouTube videos, would love to watch it. I would like to connect you on LinkedIn, great to have experts like you in my connection (In case, if you don’t have any issues).

      Gracias,
      Kevin

    Post a Comment