Activity Stream
48,167 MEMBERS
6919 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 2 of 2
  1.     
    #1
    Member
    Website's:
    imageditings.com shimory.com uniquerelease.com

    Default How to enable mail on localhost

    im install xampp on my local pc, when i tried use function for recover password im not getting any email. how to enable mail on xampp localhost, should i enable port 25 on php.ini or something?
    MediaStar Reviewed by MediaStar on . How to enable mail on localhost im install xampp on my local pc, when i tried use function for recover password im not getting any email. how to enable mail on xampp localhost, should i enable port 25 on php.ini or something? Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Member
    I don't use xampp but found this on the net:
    XAMPP should have come with a "fake" sendmail program. In that case, you can use sendmail as well:

    In php.ini file

    [mail function]
    ; For Win32 only.
    ; http://php.net/smtp
    ;SMTP = localhost
    ; http://php.net/smtp-port
    ;smtp_port = 25

    ; For Win32 only.
    ; http://php.net/sendmail-from
    ;sendmail_from = me@example.com

    ; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
    ; http://php.net/sendmail-path
    sendmail_path = "C:/xampp/sendmail/sendmail.exe -t -i"

    Sendmail should have a sendmail.ini with it; it should be configured as so:
    # Example for a user configuration file

    # Set default values for all following accounts.
    defaults
    logfile "C:\xampp\sendmail\sendmail.log"

    # Mercury
    #account Mercury
    #host localhost
    #from postmaster@localhost
    #auth off

    # A freemail service example
    account ACCOUNTNAME_HERE
    tls on
    tls_certcheck off
    host smtp.gmail.com
    from EMAIL_HERE
    auth on
    user EMAIL_HERE
    password PASSWORD_HERE

    # Set a default account
    account default : ACCOUNTNAME_HERE

    Of course, replace ACCOUNTNAME_HERE with an arbitrary account name, replace EMAIL_HERE with a valid email (such as a Gmail or Hotmail), and replace PASSWORD_HERE with the password to your email. Now, you should be able to send mail. Remember to restart Apache (from the control panel or the batch files) to allow the changes to PHP to work.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Wordpress from localhost to live
    By jbisana17 in forum Wordpress
    Replies: 4
    Last Post: 24th Feb 2012, 08:44 PM
  2. How to install DLE on localhost
    By Drinkordie in forum DLE
    Replies: 2
    Last Post: 5th Dec 2011, 01:35 AM
  3. Work For Localhost :)
    By Jumbo in forum Graphics Area
    Replies: 12
    Last Post: 17th Jul 2010, 03:56 PM
  4. How can I run a WP blog on my localhost?
    By pi0tr3k in forum Technical Help Desk Support
    Replies: 14
    Last Post: 16th Jun 2010, 07:14 PM
  5. Creating Localhost on PC
    By Spooky in forum Webmaster Discussion
    Replies: 10
    Last Post: 23rd Apr 2010, 09:44 PM

Tags for this Thread

BE SOCIAL