PHP Interface Swift_Mime_Message, Halite

Author: Chris Corbyn
Inheritance: extends Swift_Mime_MimeEntity
Afficher le fichier Open project: HaliteChallenge/Halite Interface Usage Examples

Méthodes publiques

Méthode Description
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).

Method Details

generateId() public méthode

Generates a valid Message-ID and switches to it.
public generateId ( ) : string
Résultat string

getBcc() public méthode

This method always returns an associative array, whereby the keys provide the actual email addresses.
public getBcc ( ) : string[]
Résultat string[]

getCc() public méthode

This method always returns an associative array, whereby the keys provide the actual email addresses.
public getCc ( ) : string[]
Résultat string[]

getDate() public méthode

Get the origination date of the message as a UNIX timestamp.
public getDate ( ) : integer
Résultat integer

getFrom() public méthode

This method always returns an associative array where the keys are the addresses.
public getFrom ( ) : string[]
Résultat string[]

getReplyTo() public méthode

This method always returns an associative array where the keys provide the email addresses.
public getReplyTo ( ) : string[]
Résultat string[]

getReturnPath() public méthode

Get the return-path (bounce-detect) address.
public getReturnPath ( ) : string
Résultat string

getSender() public méthode

This has a higher significance than the From address.
public getSender ( ) : string
Résultat string

getSubject() public méthode

Get the subject of the message.
public getSubject ( ) : string
Résultat string

getTo() public méthode

This method always returns an associative array, whereby the keys provide the actual email addresses.
public getTo ( ) : string[]
Résultat string[]

setBcc() public méthode

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() public méthode

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() public méthode

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

setFrom() public méthode

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() public méthode

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() public méthode

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

setSender() public méthode

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() public méthode

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

setTo() public méthode

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