Jovs
Jovs

Reputation: 892

Email verification. No connection could be made because the target machine actively refused it

I'm trying to implement email verification and i'm following a tutorial but its showing this error:

Connection could not be established with host smtp.mailtrap.io [No connection could be made because the target machine actively refused it. #10061]

this is my .env

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=e9a7e9d32adaf9
MAIL_PASSWORD=58b926579ce74d
[email protected]
MAIL_FROM_NAME=Example
MAIL_ENCRYPTION=tsl

I already tried this :

php artisan cache:clear
php artisan config:clear

Any help is much appreciated ! Thanks

Upvotes: 0

Views: 562

Answers (1)

Jovs
Jovs

Reputation: 892

Solved it!

I just change the port and encryption

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=25
MAIL_USERNAME=e9a7e9d32adaf9
MAIL_PASSWORD=58b926579ce74d
[email protected]
MAIL_FROM_NAME=Example
MAIL_ENCRYPTION=tls

Upvotes: 0

Related Questions