- 1
I want to send a verification mail using php. What is tha code and can i do this using localhost ?
2 ответов
+ 7
That's why you should use PHPMailer which doesn't require local smtp server.
https://github.com/PHPMailer/PHPMailer
It uses existing smtp servers.
https://www.lifewire.com/what-are-the-gmail-smtp-settings-1170854
https://www.lifewire.com/what-are-windows-live-hotmail-smtp-settings-1170861
But usually web hotels comes with smtp servers but for localhost this is the easiest way.
+ 3
you need a smtp server to be able use the mail function in php