我们如何使用wamp从localhost发送php(核心php)中的邮件

I want to send mail from my local host in any live mail box (Google. yahoo etc). I am in windows environment and using wamp. Please help me. Thanks

You can't do without a library. Make use of PHPMailer

How to configure PHPMailer on WAMP. See this

you can use sendmail for this and for wamp local host you could make some change in php.ini file, as

[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = smtp.gmail.com
; http://php.net/smtp-port
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = yourmail@gmail.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
//just remove semicolon

sendmail_path ="C:\wamp\sendmail\sendmail.exe -t -i"

Now restart your apache