sending e-mail from mail function php
问题 I can send an e-mail using php mail function. Other languages also have similar functions. mail(to,subject,message,headers,parameters) I was under an impression that to send an e-mail you need SMTP credentials. How does this function send emails? Which SMTP server does it use? How does it work? 回答1: you have to configure your server to send emails .. You can send mail from localhost with sendmail package , sendmail package is inbuild in XAMPP. So if you are using XAMPP then you can easily