GithubHelp home page GithubHelp logo

quartzy / courier Goto Github PK

View Code? Open in Web Editor NEW
24.0 11.0 0.0 824 KB

A domain-driven library for sending transactional emails in PHP

License: Other

PHP 100.00%
email email-sender sparkpost sendgrid postmark

courier's People

Contributors

camuthig avatar

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

courier's Issues

Support delivery receipts on the Courier interface

SaaS email system will generally return an ID of some sort representing the delivery in their system whenever we sent the request to them. This ID can be important when troubleshooting and auditing the lifecycle of the delivery.

For non-SaaS deliveries (NullCourier is the only courier in this boat currently), the concept of a receipt ID makes much less sense. This means that a courier build around mail or another local server transmission mechanism won't have an ID to return.

When originally built, the idea around Courier was to specifically support SaaS providers, so changing the interface signature to deliver(Email $email): string would make sense. Before making a decision on changing the interface we should determine:

  • Should the library stay flexible enough to support local delivery of emails?
  • Is there a way to maintain a simple, concise interface but still support both a void and a string return type?

Add integration tests

It would be best to figure out a good way to actually send requests to the services that are implemented by this project to ensure there are not edge cases that are missing.

Support SendGrid templates with multiple emails

SendGrid currently has a bug in their processing that causes templates to render incorrectly if more than one email attachment is included. The workaround suggested by the SendGrid support team is to send an inline template instead of using a saved template. This pattern is similar to how the SparkPostCourier currently works.

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.