Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Mandrill Swiftmailer Laravel Package

accord/mandrill-swiftmailer

View on GitHub
Deep Wiki
Context7

Accord\MandrillSwiftMailer

Build Status

A SwiftMailer transport implementation for Mandrill

!! This library is no longer being actively maintained. We are accepting pull requests, but cannot guarantee a timeline for releases. !!

If possible, we recommend migrating your projects to the symfony/mailer component.

Installation

Require the package with composer

composer require accord/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:unsubscribe@example.com>');
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
comsave/common
alecsammon/php-raml-parser
chrome-php/wrench
lendable/composer-license-checker
typhoon/reflection
mesilov/moneyphp-percentage
mike42/gfx-php
bookdown/themes
aura/view
aura/html
aura/cli
povils/phpmnd
nayjest/manipulator
omnipay/tests
psr-mock/http-message-implementation
psr-mock/http-factory-implementation
psr-mock/http-client-implementation
voku/email-check
voku/urlify
rtheunissen/guzzle-log-middleware