galih56's avatar

How to use CPanel email accounts in laravel project?

I want to make email verification with [email protected] that i just created in Cpanel using laravel.

MAIL_DRIVER=smtp
MAIL_HOST=mail.*****.co.id
MAIL_PORT=465
MAIL_USERNAME=no-reply@******.co.id
MAIL_PASSWORD=*******
MAIL_ENCRYPTION=ssl

But i couldn't use 1 of them. this always shows the following error message :

Expected response code 250 but got code "550", with message "550-Your FROM address ( gmail.com , s*****@gmail.com ) must match your
550-authenticated email domain ( *****.co.id ). Treating this as a spoofed

I think this error forces me to use the original CPanel username. I'm not sure. Anyone can help me why i can't use the email accounts?

0 likes
1 reply

Please or to participate in this conversation.