When I am using sendgrid to send mail in laravel it gives me "550 unauthenticated senders not allowed" Does not know why these happens. I have configured sender authentication from sendgrid account and create a api key which is used as a password and username as apikey. I have also tried with username and password same as username and password of sendgrid but this also not works for me please help me.
In .env file simply set mail parameters MAIL_DRIVER=smtp MAIL_HOST=smtp.sendgrid.net MAIL_PORT=587 MAIL_USERNAME=apikey MAIL_PASSWORD=API Key MAIL_ENCRYPTION=tls MAIL_FROM_ADDRESS=test@gmail.com MAIL_FROM_NAME="text.com"