DeveloperSide.NET Forums
December 07, 2019, 05:03:13 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  DeveloperSide.NET / Anything else goes here / problem with first login to drupal, first account, password, and sending emails on: July 25, 2007, 09:23:21 PM
Hello.  I installed the developer.net package on Windows XP professional, and I am trying to log in to Drupal.  I seem to have created an account (I don't remember doing this, but when I try to create a new account with my favorite account name, I get the message that the name is already taken).  [By the way, I have been spending way too much time at my computer and have a bad memory, so I am ready to believe that I forgot that I created an account, or maybe somehow created one unintentionally.]  But I don't know the password  for that account (I tried my favorite password and it didn't work, which also seems strange, since if I had created an account with my favorite name, I believe I would have used my favorite password).  So I tried to do the "Request new password" operation, and when I clicked "email new password", I got the 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 C:\www\webapps\drupal\includes\common.inc on line 1970.  Unable to send mail. Please contact the site admin.

I know extremely little about any of this, and I tried reading on the web.  This led me to think maybe I could use gmail's SMTP, and so I tried making a couple of changes in the file C:\WINDOWS\php.ini, commenting out (with ";;;") and replacing two lines as follows:

[mail function]
; For Win32 only.
;;; SMTP = localhost
SMTP = smtp.gmail.com
smtp_port = 25
; For Win32 only.
;;; sendmail_from = admin@localhost
sendmail_from = jtwchang@gmail.com

And I found out about restarting Apache using services.msc, which I did.  This led to a similar error message:

warning: mail() [function.mail]: Failed to connect to mailserver at "smtp.gmail.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\www\webapps\drupal\includes\common.inc on line 1970.  Unable to send mail. Please contact the site admin.

So at this point, I am not sure what is the best way to get unstuck.  If I learn how to enable Drupal to send emails, I can find out my missing password, I imagine.  (I am still even a bit confused about what happened and doubtful about my having created an account, though...)  Or is there another way to do this?  If I have to and if it would be likely to work, I could uninstall developerside.net and reinstall it and start over again hopefully when I am alert.

Hope that made sense; thanks very much for any help!


Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!