Latest

Monday, July 10, 2017

400 bad request Mailgun Laravel

Asked by: Syed Abdur Rehman Kazmi


I am using Mailgun in Laravel. I had previously setup my mailing account with Mailgun and it was working fine but i had to change it for some reason. I have followed the same procedure and that i followed earlier but somehow it isnt working as same. I am using Laravel 5.0 . My .env file is

APP_ENV=local
APP_KEY=base64:*****
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=stelp_dev
DB_USERNAME=root
DB_PASSWORD=


BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379



MAIL_DRIVER=mailgun
MAIL_HOST=smtp.mailgun.org
MAIL_PORT=2525
MAIL_USERNAME=postmaster@dev.stelp.pk
MAIL_PASSWORD=*****
MAIL_ENCRYPTION=tls
MAIL_FROM_NAME="Support RainbowSix"
MAIL_FROM=support@intelrainbow6hub.com


MAILGUN_DOMAIN=dev.stelp.pk
MAILGUN_SECRET=*****



PUSHER_APP_ID=
PUSHER_KEY=
PUSHER_SECRET=

I have verified domain and added all txt and mx records. But i am still getting this error

ClientException in RequestException.php line 111:
Client error: `POST https://api.mailgun.net/v3/dev.stelp.pk/messages.mime` resulted in a `400 BAD REQUEST` response:
{
"message": "Free accounts are for test purposes only. Please upgrade or add the address to authorized recipients in (truncated...)

I am adding the screenshot so that you can see i have all things verified as well

enter image description here



Source

No comments:

Post a Comment

Adbox