In php.ini I set:
SMTP = smtp.gmail.com
smtp_port = 465
; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = mygmail@gmail.com
In
Most local boxes with Windows don't come with a SMTP server. You could use an external SMTP server and configure it in your php.ini
file, but SMTP authentication is not possible.
I recommend you to use PHPMailer, is a simple and flexible PHP Class, that can use a SMTP server with authentication. It is also more secure than using bundled PHP mail()
function.
http://phpmailer.worxware.com/