Results 1 to 2 of 2
-
17th Jul 2012, 12:50 PM #1OPMemberWebsite's:
imageditings.com shimory.com uniquerelease.comHow 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
-
17th Jul 2012, 01:32 PM #2Respected 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.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Wordpress from localhost to live
By jbisana17 in forum WordpressReplies: 4Last Post: 24th Feb 2012, 08:44 PM -
How to install DLE on localhost
By Drinkordie in forum DLEReplies: 2Last Post: 5th Dec 2011, 01:35 AM -
Work For Localhost :)
By Jumbo in forum Graphics AreaReplies: 12Last Post: 17th Jul 2010, 03:56 PM -
How can I run a WP blog on my localhost?
By pi0tr3k in forum Technical Help Desk SupportReplies: 14Last Post: 16th Jun 2010, 07:14 PM -
Creating Localhost on PC
By Spooky in forum Webmaster DiscussionReplies: 10Last Post: 23rd Apr 2010, 09:44 PM
themaCreator - create posts from...
Version 3.23 released. Open older version (or...