Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Mego's avatar
Level 1

Set a e-mail client for WAMP

I am trying to send an verification e-mail from my localhost (WAMP server on 127.0.0.1). I have downloaded this utility: https://toolheap.com/test-mail-server-tool/ Now when I try to send the php mail() function, the e-mail is OK, but when laravel tries to send an e-mail, I receive the error

Expected response code 250 but got code "530", with message "530 5.7.1 Authentication required " What should I do? Thank you

0 likes
7 replies
mvd's avatar
mvd
Best Answer
Level 48

Hi @mego

What are your mail settings in .env?

If you use port 25 in test-mail-server-tool, try this settings in your .env config

MAIL_DRIVER=smtp
MAIL_HOST=localhost
MAIL_PORT=25
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=NULL
1 like
Mego's avatar
Level 1

Hi, this is enough for mailing from localhost? I will try in a few hours

Mego's avatar
Level 1

Hello, I have tried this, but still the same error. :(

Mego's avatar
Level 1

Still does not work. I tried another port... nothing, still the same error.

mvd's avatar

@mego also cleared the cache? php artisan config:cache

If you run phpinfo(); What are the values for 'SMTP' and 'smtp_port' ?

Mego's avatar
Level 1

This is from phpinfo();

SMTP localhost localhost smtp_port 25 25

I didn't know that I must clear cache bro, you have not mentioned about it... :( I am going to try it

Mego's avatar
Level 1

Hey bro, now it WORKS! Thank you a million, you save my day.

1 like

Please or to participate in this conversation.