baibaratsky / php-mailgun Goto Github PK
View Code? Open in Web Editor NEWMailgun API PHP library and Yii extension (as well as Yii2)
License: Other
Mailgun API PHP library and Yii extension (as well as Yii2)
License: Other
does this wrapper support batch sending by recipient variable?
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);
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.
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.
include(MailgunObject.php) [function.include]: failed to open stream: No such file or directory
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?
After the initialization there’s no effect of the Yii->app()->mailgun
properties modification.
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.
Update to support Mailgun v3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.