PHP Интерфейс Swift_Mime_Message, Halite

Автор: Chris Corbyn
Наследование: extends Swift_Mime_MimeEntity
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
generateId ( ) : string Generates a valid Message-ID and switches to it.
getBcc ( ) : string[] Get the Bcc addresses for this message.
getCc ( ) : string[] Get the Cc addresses for this message.
getDate ( ) : integer Get the origination date of the message as a UNIX timestamp.
getFrom ( ) : string[] Get the From address(es) of this message.
getReplyTo ( ) : string[] Get the Reply-To addresses for this message.
getReturnPath ( ) : string Get the return-path (bounce-detect) address.
getSender ( ) : string Get the sender address for this message.
getSubject ( ) : string Get the subject of the message.
getTo ( ) : string[] Get the To addresses for this message.
setBcc ( mixed $addresses, string $name = null ) Set the Bcc address(es).
setCc ( mixed $addresses, string $name = null ) Set the Cc address(es).
setDate ( integer $date ) Set the origination date of the message as a UNIX timestamp.
setFrom ( mixed $addresses, string $name = null ) Set the From address of this message.
setReplyTo ( mixed $addresses, string $name = null ) Set the Reply-To address(es).
setReturnPath ( string $address ) Set the return-path (bounce-detect) address.
setSender ( mixed $address, string $name = null ) Set the sender of this message.
setSubject ( string $subject ) Set the subject of the message.
setTo ( mixed $addresses, string $name = null ) Set the To address(es).

Описание методов

generateId() публичный Метод

Generates a valid Message-ID and switches to it.
public generateId ( ) : string
Результат string

getBcc() публичный Метод

This method always returns an associative array, whereby the keys provide the actual email addresses.
public getBcc ( ) : string[]
Результат string[]

getCc() публичный Метод

This method always returns an associative array, whereby the keys provide the actual email addresses.
public getCc ( ) : string[]
Результат string[]

getDate() публичный Метод

Get the origination date of the message as a UNIX timestamp.
public getDate ( ) : integer
Результат integer

getFrom() публичный Метод

This method always returns an associative array where the keys are the addresses.
public getFrom ( ) : string[]
Результат string[]

getReplyTo() публичный Метод

This method always returns an associative array where the keys provide the email addresses.
public getReplyTo ( ) : string[]
Результат string[]

getReturnPath() публичный Метод

Get the return-path (bounce-detect) address.
public getReturnPath ( ) : string
Результат string

getSender() публичный Метод

This has a higher significance than the From address.
public getSender ( ) : string
Результат string

getSubject() публичный Метод

Get the subject of the message.
public getSubject ( ) : string
Результат string

getTo() публичный Метод

This method always returns an associative array, whereby the keys provide the actual email addresses.
public getTo ( ) : string[]
Результат string[]

setBcc() публичный Метод

Recipients set in this field will receive a 'blind-carbon-copy' of this message. In other words, they will get the message, but any other recipients of the message will have no such knowledge of their receipt of it. This method has the same synopsis as {@link setFrom()} and {@link setTo()}.
public setBcc ( mixed $addresses, string $name = null )
$addresses mixed
$name string optional

setCc() публичный Метод

Recipients set in this field will receive a 'carbon-copy' of this message. This method has the same synopsis as {@link setFrom()} and {@link setTo()}.
public setCc ( mixed $addresses, string $name = null )
$addresses mixed
$name string optional

setDate() публичный Метод

Set the origination date of the message as a UNIX timestamp.
public setDate ( integer $date )
$date integer

setFrom() публичный Метод

It is permissible for multiple From addresses to be set using an array. If multiple From addresses are used, you SHOULD set the Sender address and according to RFC 2822, MUST set the sender address. An array can be used if display names are to be provided: i.e. array('[email protected]' => 'Real Name'). If the second parameter is provided and the first is a string, then $name is associated with the address.
public setFrom ( mixed $addresses, string $name = null )
$addresses mixed
$name string optional

setReplyTo() публичный Метод

Any replies from the receiver will be sent to this address. It is permissible for multiple reply-to addresses to be set using an array. This method has the same synopsis as {@link setFrom()} and {@link setTo()}. If the second parameter is provided and the first is a string, then $name is associated with the address.
public setReplyTo ( mixed $addresses, string $name = null )
$addresses mixed
$name string optional

setReturnPath() публичный Метод

Set the return-path (bounce-detect) address.
public setReturnPath ( string $address )
$address string

setSender() публичный Метод

If multiple addresses are present in the From field, this SHOULD be set. According to RFC 2822 it is a requirement when there are multiple From addresses, but Swift itself does not require it directly. An associative array (with one element!) can be used to provide a display- name: i.e. array('email@address' => 'Real Name'). If the second parameter is provided and the first is a string, then $name is associated with the address.
public setSender ( mixed $address, string $name = null )
$address mixed
$name string optional

setSubject() публичный Метод

Set the subject of the message.
public setSubject ( string $subject )
$subject string

setTo() публичный Метод

Recipients set in this field will receive a copy of this message. This method has the same synopsis as {@link setFrom()} and {@link setCc()}. If the second parameter is provided and the first is a string, then $name is associated with the address.
public setTo ( mixed $addresses, string $name = null )
$addresses mixed
$name string optional