maurymmarques / postmark-cakephp Goto Github PK
View Code? Open in Web Editor NEWPostmark plugin for CakePHP
Postmark plugin for CakePHP
When using
'log' => true
in my email config I get errors about undefined indexes 'headers' and 'message'
Notice (8): Undefined index: message [CORE/Cake/Network/Email/CakeEmail.php, line 1067]
I tried fixing this but cannot find out how to set both indexes required in the above line in CakeEmail.
I had a strange problem with email sending through cakephp and postmark.
I have installed postmark-cakephp library in my cakephp application. I'm able to send email to single user and able to send email to multiple users with same email content (message) but here my requirement is I need to send email to multiple users with some dynamic email content. (contains user id)
I'm able to do this in a for loop but I want to send batch emails with dynamic content with a single call.
It is possible in official php postmark library https://github.com/wildbit/postmark-php/wiki/Sending-Batches
But how to make it with this library ?
In an old Postmark component for Cake 1.3 found here: https://github.com/danielmcormond/postmark-cakephp/blob/master/postmark.php#L119, the author has support for Tag's. It would be relatively easy to add support for it into yours.
Adding this to line 110 in PostmarkTransport.php
// Tag (if there is one)
if(isset($this->_headers['Tag']))
{
$message['Tag'] = $this->_headers['Tag'];
}
Then people could do:
$email = new CakeEmail();
$email->to('[email protected]');
$email->addHeaders(array('Tag' => 'my tag'));
$email->send('this message has been tagged');
Thanks for making this lib btw :)
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.