Giter Club home page Giter Club logo

php-mailgun's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

php-mailgun's Issues

Mailgun: How to keep track of the Message-ID (and References and In-Reply-To) to build threads

I want to keep thread when I reply to mail using Mailgun API.

Let me explain. I fetch mail using IMAP. I have message_id,subject,text,sender mail etc. Now I reply to that mail using Mailgun Yii extension. Here i face problem. I replied with same subject to that email-id but that person get mail as a new mail. Thread is not generated. In Php Mailer i find following way so thread is generated. But how to create thread using Mailgun Yii extension.

$mail->AddCustomHeader('In-Reply-To', $message_id);
$mail->addCustomHeader('References', $message_id);

Attach file

How do I attach a file to the email with this extension?
I tries to use $message->addAttachment('image.png'); but that does not work.

Yii Failed to open stream: No such file or directory

Under Yii 1.1.17 this error

php extends include(MailgunMessage.php): failed to open stream: No such file or directory

appears with

$message = Yii::app()->mailgun->newMessage();

php-mailgun 1.2 Integrated into Yii extensions directory without composer.

It seems the MailgunYii.php does not find the MailgunMessage.php.

Workaround was to add

require(dirname(__FILE__).'/'.'MailgunMessage.php'); 

into MailgunYii.php.

Getting error "Forbidden " when trying to Mailgun's testing domain

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('[email protected]', 'Testing Mail');
        $message->addTo('[email protected]', '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?

Getting started

I ran composer, I got a bunch of files in /vendor/baibaratsky/php-mailgun

But I am baffled by the example to get started.
"It's pretty easy..."
No other composer package requires me to include an autoloader,
and all other Yii2 packages have namespaces (this one does not).

My IDE is telling me that MailgunApi is not found/defined.
I don't know what to write for the "use" statement.
The example makes no sense to me because Yii2 already includes ../../vendor/autoload.php in the entry script.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.