Download the PHP package vulcandigital/silverstripe-sendgrid without Composer

On this page you can find all versions of the php package vulcandigital/silverstripe-sendgrid. 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-sendgrid

Build Status codecov Latest Stable Version Total Downloads License

silverstripe-sendgrid

A module to assist developers in sending template emails via SendGrid

Requirements

Installation

Configuration

mysite/_config/sendgrid.yml:

Usage

You can add as many recipients as you want.

Substitutions & Custom Arguments

Substitutions and custom arguments are practically the same thing, the only difference is that custom arguments are applied globally regardless of the recipient where substitutions are variable replacements that can differ per recipient.

Substitutions will always override any custom argument

Substitutions

Substitutions are variables that can be replaced per recipient

Custom Arguments

Custom arguments are applied globally across all recipients unless a substitution has overridden it

Attachments

You can add as many attachments as you want totalling up to 30 MB. The attachment must be a File object or a subclass of it such as itself or Image.

or you can use an absolute path to a file instead:

If you provide $filename, make sure you provide the correct extension as well to prevent any errors

If the provided file is a File object and $forcePublish is set to true and the File you have provided has not been published, it will be forcibly published.

Scheduling

You can schedule emails to be sent at a later date:

Important: Ensure that you have specified your correct timezone in your SendGrid account's settings, otherwise this may have unexpected results.

Your database timezone should also match the timezone you have specified in your account. See Core Environment Variables for information on how to modify the timezone used by your database.

It is always advised when dealing with dates and times in SilverStripe to use the functionality it has provided you as shown in the example above.

Sandbox Mode

If everything is OK, $sendGrid->send() will return true otherwise an error will be thrown.

License

Vulcan Digital Ltd


All versions of silverstripe-sendgrid with dependencies

PHP Build Version
Package Version
Requires silverstripe/framework Version ^4.0
sendgrid/sendgrid Version ~6.0
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 vulcandigital/silverstripe-sendgrid contains the following files

Loading the files please wait ....