ICanBoogie
  • Documentation
  • API Reference
  • Mailer 1.1.x
Namespaces
  • ICanBoogie
    • Mailer
      • Header
Classes
  • AddressList
  • FileDeliverer
  • Header
  • MailDeliverer
  • Mailer
  • Message
  • MessagePart
Interfaces
  • Deliverer

Class Message

Representation of a message.

<?php

use ICanBoogie\Mailer\Message;

$message = new Message;

# to, cc, bcc
$message->to = "person@domain.com";
# or
$message->to = "Person name <person@domain.com>";
# or
$message->to = [ "person@domain.com" => "Person name" ];

# multiple recipients
$message->to = [ "person@domain.com" => "Person name", "person2@domain.com" ];
# or
$message->to = "Person name<person@domain.com>, person2@domain.com";
ICanBoogie\Mailer\MessagePart
┗ ICanBoogie\Mailer\Message
Namespace: ICanBoogie\Mailer
Located at Message.php

Methods summary

public static from( $source )
public __construct( array $attributes = [], array $header_fields = [] )

Overrides

ICanBoogie\Mailer\MessagePart::__construct
public __get( $property )

Overrides

ICanBoogie\Mailer\MessagePart::__get
public __set( $property, $value )

Overrides

ICanBoogie\Mailer\MessagePart::__set
public __toString( void )
public prepare( void ) : array

Returns

array

The prepared information for the mailer: - 0: (string) $to - 1: (string) $subject - 2: (string) $body - 3: (string) $header

Methods inherited from ICanBoogie\Mailer\MessagePart

__clone()

Properties summary

public static $property_to_header : array
[

    'from' => 'From',
    'to'   => 'To',
    'cc'   => 'Cc',
    'bcc'  => 'Bcc'

]
public $subject : string

Subject of the message.

Subject of the message.


		
protected $parts

		
protected $attachments

		

Properties inherited from ICanBoogie\Mailer\MessagePart

$body, $header

Magic properties

public $from : ICanBoogie\Mailer\Header\From
public $to : ICanBoogie\Mailer\Header\To

Representation of the To header field.

public $cc : ICanBoogie\Mailer\Header\Cc

Representation of the Cc header field.

public $bcc : ICanBoogie\Mailer\Header\Bcc

Representation of the Bcc header field.

public write-only $type : string

The message type, either "html" or "plain".

Magic properties inherited from ICanBoogie\Mailer\MessagePart

$header

Mailer 1.1.x – Check on GitHub – API documentation generated by ApiGen