Giter Site home page Giter Site logo

li3_mailer's Introduction

Li3 mailer plugin

A plugin for sending email messages from your li3 application.

Installation

Install and register the plugin as described by the manual.

Documentation

The documentation was created with the li3_docs plugin in mind, please see the readme.wiki for details.

TODO

  • better documentation
  • restructure View/Renderer/etc. (in lithium core) to better support inheritance (and support the Simple renderer/loader)

Credits

Thanks to nateabele, daschl, masom and the lively li3 community.

Copyright

See LICENSE.txt for details.

li3_mailer's People

Contributors

elod avatar nateabele avatar

Stargazers

 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

li3_mailer's Issues

HTML escaping should be disabled for text templates

Right now, when you use normal template output syntax (i.e. <?=$foo; ?>) inside text templates, content is still HTML-escaped, which causes it to show up HTML-escaped in the resulting emails. The mail renderer should fix this by replacing $h in non-HTML templates with a pass-through function that directly echoes passed content.

Setting the subject from inside a template

It'd be really great if we'd able to set the mail's subject from inside the template similar to what $this->title() does for regular templates. That would allow us to have all the wording inside the template.

Embed Images Outside of Template?

@eLod - Is there any way to embed images without using the Html helper? So far I see that embedded images can be added directly when invoking li3_mailer\net\mail\Message. But how can I embed an image using Mailer::deliver(). This is assuming of course that cid is already in place via the html.

Generating absolute URLs

While this isn't a specific issue to li3_mailer, this lib could bring a first solution.

When dealing with emails, one would generate absolute URLs and avoid using relative ones URLs.
Calling Router::match() with an 'absolute' => true option do it, but sending emails from a li3 command break request environment and especially, the base host.

li3_mailer could expose a way to set the default host that will be used in all mailers.

PS: I ended up with doing a Environment::set('production' => $config)during the app bootstrap process

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.