GithubHelp home page GithubHelp logo

postmark-cakephp's People

Contributors

atomtigerzoo avatar daniouyea avatar davidoliver avatar domstubbs avatar haroldputman avatar jboesch avatar jmillerdesign avatar manobi avatar maurymmarques avatar twkm avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

postmark-cakephp's Issues

Undefined index when using CakePHP logging

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.

send batch email with dynamic content

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 ?

Support for Tag's

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 :)

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.