DeveloperSide.NET Forums
December 12, 2019, 09:33:28 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: problem with first login to drupal, first account, password, and sending emails  (Read 9458 times)
0 Members and 1 Guest are viewing this topic.
jtwchang
Member
*
Posts: 1


View Profile
« 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!


Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #1 on: July 25, 2007, 09:29:57 PM »

Check the sticky thread in the support forum about sending mail... You might be able to use the gmail smtp server, I don't know... But I do know you need to specify the username and password for that smtp server.

And unless you want to edit the drupal database, and reset the password manually, the quick way would be just to uninstall/reinstall.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
night2dark2
Jr. Member
**
Posts: 98


Yeah Dont really ask.

mfaiotto@msn.com
View Profile WWW
« Reply #2 on: August 30, 2007, 09:49:40 PM »

I've been trying to find googles SMTP. I know its not port 25.
And you use
[mail function]
; For Win32 only.
;;; SMTP = localhost
SMTP = smtp.gmail.com
smtp_port = 467
; For Win32 only.
;;; sendmail_from = admin@localhost
sendmail_from = jtwchang@gmail.com:(PASSWORD HERE)
Logged

Revolution Gamers Host.
Master of all Gunz Server Hosting Needs.
Revolution Gamers International Gaming Commmunity
Pages: [1]
  Print  
 
Jump to:  

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