Download the PHP package nyatmeat/mandrill-swiftmailer without Composer

On this page you can find all versions of the php package nyatmeat/mandrill-swiftmailer. 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 mandrill-swiftmailer

Accord\MandrillSwiftMailer

Build Status

A SwiftMailer transport implementation for Mandrill

If you'd like us to implement more Mandrill-specific features, let us know by submitting an issue.

Installation

Require the package with composer

composer require nyatmeat/mandrill-swiftmailer

Usage Example

$transport = new MandrillTransport($dispatcher);
$transport->setApiKey('ABCDEFG12345');
$transport->setAsync(true); # Optional
$transport->send($message);

Using Mandrill-specific Features

Asynchronous Mode

Enable a background sending mode that is optimized for bulk sending

$transport->setAsync(true);

Auto Text

Automatically generate a text part for messages that are not given text

$message->getHeaders()->addTextHeader('X-MC-Autotext', true);

Google Analytics tracking

Mandrill supports automatic Google Analytics tracking for your links. docs

$message->getHeaders()->addTextHeader('X-MC-GoogleAnalytics', 'example.com,www.example.com');
// optional defaults to from address
$message->getHeaders()->addTextHeader('X-MC-GoogleAnalyticsCampaign', 'campaign');

Tags

An array of string to tag the message with

$message->getHeaders()->addTextHeader('X-MC-Tags', 'foo, bar');

Inline CSS

Automatically inline all CSS styles provided in the message HTML - only for HTML documents less than 256KB in size

$message->getHeaders()->addTextHeader('X-MC-InlineCSS', true);

List Unsubscribe

Mandrill automatically adds a List-Unsubscribe header to all emails that include a Mandrill-generated unsubscribe link. If recipients use an email program that supports the List-Unsubscribe header (like Hotmail, AOL, or Yahoo), they can use the option in their email program to unsubscribe.

$message->getHeaders()->addTextHeader('List-Unsubscribe', '<mailto:[email protected]>');

All versions of mandrill-swiftmailer with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
mandrill/mandrill Version ~1.0
swiftmailer/swiftmailer 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 nyatmeat/mandrill-swiftmailer contains the following files

Loading the files please wait ....