Download the PHP package unclecheese/silverstripe-permamail without Composer

On this page you can find all versions of the php package unclecheese/silverstripe-permamail. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package silverstripe-permamail

SilverStripe Permamail

====================== This module adds several enhancements to the core Email class in SilverStripe:

Installation

composer require unclecheese/silverstripe-permamail:dev-master

Requirements

Usage

By default, Permamail is injected as the class for Email, meaning Email::create() will instantiate a Permamail object instead of Email. Because Permamail is a subclass of Email, the API is exactly the same.

If you would like to use Permamail on a case-by-case basis, simply use new Permamail() and new Email() where you see fit, or override the injector setting in the configuration so that Email is the class used for Email.

Example

The API is exactly the same, with only two new methods:

The admin interface

Permamail provides a new ModelAdmin interface called Email, which provides two tabs:

Outbound Emails

Shows a list of all emails sent. Offers an option to resend.

screenshot

screenshot

Email templates

Allows creation of user-defined templates, with default subjects and "From" addresses.

screenshot

Sending test emails

screenshot

Every user-defined template can send a test email, and populate the template with the variables you have specified. To do this, the template uses the ReflectionTemplate class to gather all the variables and blocks in the template, and offers you the opportunity to customise what values are assigned to those variables. Options include:

screenshot

Querying specific records to inject into your template

To run a custom query, you can use a query string like an array is used in the filter() method of the ORM, for example: Category=gardening&Title:StartsWith=A&Created:LessThan=2014-11-11

Questions you may have

What if I'm using a custom mailer, like Mandrill, or SendGrid?

No worries. This module doesn't override the mailer. It just overrides the Email class that wraps the Mailer.

What about when the error logger sends out emails. I don't want to persist those to the database.

The error logger does not use the Email class unless you're unit testing. True errors are sent via simple PHP mail().

Won't this pollute the database? My site sends a lot of email.

For maintenance, use the PermamailCleanupTask. It accepts two parameters:

/dev/tasks/PermamailCleanupTask?count=30&unit=days will remove all emails that are more than 30 days old.


All versions of silverstripe-permamail with dependencies

PHP Build Version
Package Version
Requires silverstripe/framework Version ~3.2
unclecheese/betterbuttons Version ~1.3
unclecheese/display-logic Version ~1.3
unclecheese/reflection-templates Version dev-master
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package unclecheese/silverstripe-permamail contains the following files

Loading the files please wait ....