Getting error "Forbidden " when trying to Mailgun's testing domain
PrajapatiDhara1510 opened this issue · comments
Hello,
I installed your package in Yii 1. Now I am trying to send mail using Mailgun's testing domain. I have done as following.
'mailgun' => array(
'class' => 'application.extensions.php-mailgun.MailgunYii',
'domain' => 'sandboxXX.mailgun.org',
'key' => 'Here I don't know which key require so i use public key',
'tags' => array('yii'), // You may also specify some Mailgun parameters
'enableTracking' => false,
),
$message = Yii::app()->mailgun->newMessage();
$message->setFrom('xyz@abc.co.in', 'Testing Mail');
$message->addTo('pqr@abc.co.in', 'My dear user');
$message->setSubject('Are you getting my mail?');
$message->setText('Amazing! It’s working!');
echo $message->send();
Now here I am facing an issue. I got error "Forbidden". I don't know which key require in testing domain.
Do any changes required or not?
Is this issue relevant yet?
No. With my verified domain i can send mail. But is there any testing key given or not for test domain which is given by mailgun account?
I think, you should ask the Mailgun support about it.
On 22 Sep 2016, at 08:53, Khushi notifications@github.com wrote:
No. With my verified domain i can send mail. But is there any testing key given or not for test domain which is given by mailgun account?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
sure. thanks for your kind help.