How to send an email with password details in php?
<p>Suppose a user forgot his password and he wants to know his password. He has to provide an answer for his security question. After providing the correct answer, I want php to send an email to the user's email address and display his password.</p>

<p>So, what mail configurations should I do in php so that it interacts with many email addressess of respective users?</p>

<p>okay, this is my php.ini file, what do i change? I'm using wamp 2.0 in windows 7 ultimate.</p>

<pre><code>[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = me@example.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
</code></pre>
