Overview

Namespaces

  • Fabian
    • Mandrill
  • PHP

Classes

  • MandrillMailer
  • Message

Exceptions

  • MandrillException
  • Overview
  • Namespace
  • Class
  • Tree

Class Message

Provides similar API to Nette\Mail\Message

Nette\Mail\Message
Extended by Fabian\Mandrill\Message
Namespace: Fabian\Mandrill
Located at Message.php
Methods summary
public Fabian\Mandrill\Message
# setFrom( string $email, string $name = NULL )

Sets the sender of the message.

Sets the sender of the message.

Parameters

$email
string
email or format "John Doe" <doe@example.com>
$name
string

Returns

Fabian\Mandrill\Message
provides a fluent interface
public Fabian\Mandrill\Message
# setBody( string $body )

Sets textual body.

Sets textual body.

Parameters

$body
string

Returns

Fabian\Mandrill\Message
provides a fluent interface
public Fabian\Mandrill\Message
# setHtmlBody( string $html, NOT $basePath = NULL )

Sets HTML body.

Sets HTML body.

Parameters

$html
string
$basePath
NOT
IMPLEMENTED

Returns

Fabian\Mandrill\Message
provides a fluent interface
public Fabian\Mandrill\Message
# setSubject( string $subject )

Sets the subject of the message.

Sets the subject of the message.

Parameters

$subject
string

Returns

Fabian\Mandrill\Message
provides a fluent interface
public Fabian\Mandrill\Message
# addTo( string $email, string $name = NULL )

Adds email recipient.

Adds email recipient.

Parameters

$email
string
email or format "John Doe" <doe@example.com>
$name
string

Returns

Fabian\Mandrill\Message
provides a fluent interface
public Fabian\Mandrill\Message
# addTag( string $tag )

Add tag form Mandrill Outbound info

Add tag form Mandrill Outbound info

Parameters

$tag
string
$tag

Returns

Fabian\Mandrill\Message
provides a fluent interface
public Fabian\Mandrill\Message
# setAsync( type $async = TRUE )

Enable a background sending mode that is optimized for bulk sending. In async mode, messages/send will immediately return a status of "queued" for every recipient. To handle rejections when sending in async mode, set up a webhook for the 'reject' event. Defaults to false for messages with no more than 10 recipients; messages with more than 10 recipients are always sent asynchronously, regardless of the value of async.

Enable a background sending mode that is optimized for bulk sending. In async mode, messages/send will immediately return a status of "queued" for every recipient. To handle rejections when sending in async mode, set up a webhook for the 'reject' event. Defaults to false for messages with no more than 10 recipients; messages with more than 10 recipients are always sent asynchronously, regardless of the value of async.

Parameters

$async
type
$async

Returns

Fabian\Mandrill\Message
provides a fluent interface
public Fabian\Mandrill\Message
# setParam( string $param, string $value )

Add another Mandrill param

Add another Mandrill param

Parameters

$param
string
$param
$value
string
$value

Returns

Fabian\Mandrill\Message
provides a fluent interface
public array
# getMandrillParams( )

Returns Mandrill params

Returns Mandrill params

Returns

array
API documentation generated by ApiGen 2.8.0