如何使用PHP从WAMP服务器发送邮件[复制]

This question already has an answer here:

i have tried to send mail from WAMP server but still its not working... can anyone tell me the whole step to be followed to send mail from WAMP server.note:i am using (7.0.4) version of WAMP server.

</div>

The mail() function wont work by default for WAMP. You will need to add details of your SMTP server in the php.ini file.

SMTP = ; Enter here the address of your SMTP server
smtp_port = 25

Then you can use your own PHP code or use third party libraries like PHPMailer or many other open source libraries, which you can find by simple search.