mailgun / mailgun-php

Mailgun's Official SDK for PHP
http://www.mailgun.com
MIT License
1.1k stars 314 forks source link

Fatal error: The endpoint you've tried to access does not exist. #486

Closed umbbberto closed 6 years ago

umbbberto commented 6 years ago

I have the clarissa.plebtest.it domain on Mailgun and it is Active, the TXT and CNAME records verified the, MX records not verified......when I run this locally (Windows 7, php 5.5.12, apache2.4.9) :

` require 'vendor/autoload.php'; use Mailgun\Mailgun;

$mgClient = new Mailgun('MY-PRIVATE-KEY'); $domain = "clarissa.plebtest.it";

$result = $mgClient->sendMessage("$domain", array('from' => 'cleto@plebtest.it', 'to' => 'umbbberto@virgilio.it', 'subject' => 'Hello', 'text' => 'Testing some Mailgun awesomeness!')); `

I get the fatal error:

Mailgun\Connection\Exceptions\MissingEndpoint: The endpoint you've tried to access does not exist. Check if the domain matches the domain you have configure on Mailgun. Domain not found: clarissa.plebtest.it in C:\wamp\www\plebtest\tutorial\mailinglist\vendor\mailgun\mailgun-php\src\Mailgun\Connection\RestClient.php on line 260

any suggestions? thanks

umbbberto commented 6 years ago

If someone is in the same issue look at this: https://github.com/mailgun/mailgun-php/issues/471