Re: [PHP] Sometime the code works and sometimes doesn't

2009-02-05 Thread German Geek
I would also suggest that you hash the passwords at least (better even with a salt value) and then reset the password to something random before sending it to the user. Email can be sniffed relatively easily and this would expose a possible carefully chosen password by the user and then they have t

Re: [PHP] Sometime the code works and sometimes doesn't

2009-02-05 Thread Thodoris
Hi, Here is a code for PHP password sending. There is some strange thing happening. This code DOES WORK but not always. So I might be able to get the password in my mailbox once but not always. What could be wrong. $host = 'xxx'; $user = 'xxx'; $password = 'xxx'; $dbName = '

Re: [PHP] Sometime the code works and sometimes doesn't

2009-01-16 Thread Nathan Rixham
Chris Carter wrote: There must be something that I am doing wrong. Otherwise I could have always gotten the password in my mailbox. Please help. when the php mail function sends an email, there is a brief time while the connection to the mail server resets, if you hit again in this time it'l

[PHP] Sometime the code works and sometimes doesn't

2009-01-16 Thread Chris Carter
Hi, Here is a code for PHP password sending. There is some strange thing happening. This code DOES WORK but not always. So I might be able to get the password in my mailbox once but not always. What could be wrong. "; $messages= "Hi \n\n Your password for login to our website is retrieved.\n\n"