0

I've a website in localhost (WAMP) and I'm trying to send a mail. I've made the right configuration in the php.ini file but still error is showing.

enter image description here

enter image description here

I've already checked other topics in SO but none of the answers resolve my problem :( So if someone can help me, thank you ! :)

PS : I'm sending mail using PHP for the first time.

AAT
  • 411
  • 7
  • 16
Paul Tanné
  • 79
  • 10

1 Answers1

0

Your SMTP server requires authentication. Try adding auth configuration to your php.ini and restart the server:

auth_username=yourUsername
auth_password=yourPassword

Maybe an easier way to configure and send email would be to use 3rd party library, for example PHPMailer.

Here's a tutorial: https://www.smtp2go.com/setupguide/php_mailer/

BorisS
  • 3,148
  • 1
  • 14
  • 12