TYPO3  7.6
Public Member Functions | List of all members
Swift_Mime_Message Interface Reference
Inheritance diagram for Swift_Mime_Message:
Swift_Mime_MimeEntity Swift_Mime_CharsetObserver Swift_Mime_EncodingObserver Swift_Mime_SimpleMessage Swift_Message Swift_SignedMessage MailMessage

Public Member Functions

 generateId ()
 
 setSubject ($subject)
 
 getSubject ()
 
 setDate ($date)
 
 getDate ()
 
 setReturnPath ($address)
 
 getReturnPath ()
 
 setSender ($address, $name=null)
 
 getSender ()
 
 setFrom ($addresses, $name=null)
 
 getFrom ()
 
 setReplyTo ($addresses, $name=null)
 
 getReplyTo ()
 
 setTo ($addresses, $name=null)
 
 getTo ()
 
 setCc ($addresses, $name=null)
 
 getCc ()
 
 setBcc ($addresses, $name=null)
 
 getBcc ()
 
- Public Member Functions inherited from Swift_Mime_MimeEntity
 getNestingLevel ()
 
 getContentType ()
 
 getId ()
 
 getChildren ()
 
 setChildren (array $children)
 
 getHeaders ()
 
 getBody ()
 
 setBody ($body, $contentType=null)
 
 toString ()
 
 toByteStream (Swift_InputByteStream $is)
 
- Public Member Functions inherited from Swift_Mime_CharsetObserver
 charsetChanged ($charset)
 
- Public Member Functions inherited from Swift_Mime_EncodingObserver
 encoderChanged (Swift_Mime_ContentEncoder $encoder)
 

Additional Inherited Members

- Public Attributes inherited from Swift_Mime_MimeEntity
const LEVEL_TOP = 16
 
const LEVEL_MIXED = 256
 
const LEVEL_ALTERNATIVE = 4096
 
const LEVEL_RELATED = 65536
 

Detailed Description

A Message (RFC 2822) object.

Author
Chris Corbyn

Definition at line 16 of file vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Message.php.

Member Function Documentation

generateId ( )
getBcc ( )

Get the Bcc addresses for this message.

This method always returns an associative array, whereby the keys provide the actual email addresses.

Returns
string[]

Implemented in Swift_Mime_SimpleMessage.

Referenced by Swift_Transport_NullTransport\send(), MboxTransport\send(), Swift_Transport_SendmailTransport\send(), Swift_Transport_MailTransport\send(), and Swift_Transport_AbstractSmtpTransport\send().

getCc ( )

Get the Cc addresses for this message.

This method always returns an associative array, whereby the keys provide the actual email addresses.

Returns
string[]

Implemented in Swift_Mime_SimpleMessage.

Referenced by Swift_Transport_NullTransport\send(), MboxTransport\send(), Swift_Transport_SendmailTransport\send(), Swift_Transport_MailTransport\send(), and Swift_Transport_AbstractSmtpTransport\send().

getDate ( )

Get the origination date of the message as a UNIX timestamp.

Returns
int

Implemented in Swift_Mime_SimpleMessage.

Referenced by MboxTransport\send().

getFrom ( )

Get the From address(es) of this message.

This method always returns an associative array where the keys are the addresses.

Returns
string[]

Implemented in Swift_Mime_SimpleMessage.

Referenced by Swift_Transport_MailTransport\_getReversePath(), Swift_Transport_AbstractSmtpTransport\_getReversePath(), and MboxTransport\getReversePath().

getReplyTo ( )

Get the Reply-To addresses for this message.

This method always returns an associative array where the keys provide the email addresses.

Returns
string[]

Implemented in Swift_Mime_SimpleMessage.

getReturnPath ( )
getSender ( )

Get the sender address for this message.

This has a higher significance than the From address.

Returns
string

Implemented in Swift_Mime_SimpleMessage.

Referenced by Swift_Transport_MailTransport\_getReversePath(), Swift_Transport_AbstractSmtpTransport\_getReversePath(), and MboxTransport\getReversePath().

getSubject ( )

Get the subject of the message.

Returns
string

Implemented in Swift_Mime_SimpleMessage.

getTo ( )

Get the To addresses for this message.

This method always returns an associative array, whereby the keys provide the actual email addresses.

Returns
string[]

Implemented in Swift_Mime_SimpleMessage.

Referenced by Swift_Transport_NullTransport\send(), MboxTransport\send(), Swift_Mailer\send(), Swift_Transport_SendmailTransport\send(), Swift_Transport_MailTransport\send(), and Swift_Transport_AbstractSmtpTransport\send().

setBcc (   $addresses,
  $name = null 
)

Set the Bcc address(es).

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 setFrom() and setTo().

Parameters
mixed$addresses
string$nameoptional

Implemented in Swift_Mime_SimpleMessage, and MailMessage.

Referenced by Swift_Plugins_RedirectingPlugin\_restoreMessage(), Swift_Transport_AbstractSmtpTransport\_sendBcc(), and Swift_Transport_AbstractSmtpTransport\send().

setCc (   $addresses,
  $name = null 
)

Set the Cc address(es).

Recipients set in this field will receive a 'carbon-copy' of this message.

This method has the same synopsis as setFrom() and setTo().

Parameters
mixed$addresses
string$nameoptional

Implemented in Swift_Mime_SimpleMessage, and MailMessage.

Referenced by Swift_Plugins_RedirectingPlugin\_restoreMessage().

setDate (   $date)

Set the origination date of the message as a UNIX timestamp.

Parameters
int$date

Implemented in Swift_Mime_SimpleMessage.

setFrom (   $addresses,
  $name = null 
)

Set the From address of this message.

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.nosp@m.@add.nosp@m.ress..nosp@m.com' => 'Real Name').

If the second parameter is provided and the first is a string, then $name is associated with the address.

Parameters
mixed$addresses
string$nameoptional

Implemented in Swift_Mime_SimpleMessage, and MailMessage.

setReplyTo (   $addresses,
  $name = null 
)

Set the Reply-To address(es).

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 setFrom() and setTo().

If the second parameter is provided and the first is a string, then $name is associated with the address.

Parameters
mixed$addresses
string$nameoptional

Implemented in Swift_Mime_SimpleMessage, and MailMessage.

setReturnPath (   $address)

Set the return-path (bounce-detect) address.

Parameters
string$address

Implemented in Swift_Mime_SimpleMessage, and MailMessage.

setSender (   $address,
  $name = null 
)

Set the sender of this message.

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' => 'Real Name').

If the second parameter is provided and the first is a string, then $name is associated with the address.

Parameters
mixed$address
string$nameoptional

Implemented in Swift_Mime_SimpleMessage, and MailMessage.

setSubject (   $subject)

Set the subject of the message.

Parameters
string$subject

Implemented in Swift_Mime_SimpleMessage.

setTo (   $addresses,
  $name = null 
)

Set the To address(es).

Recipients set in this field will receive a copy of this message.

This method has the same synopsis as setFrom() and setCc().

If the second parameter is provided and the first is a string, then $name is associated with the address.

Parameters
mixed$addresses
string$nameoptional

Implemented in Swift_Mime_SimpleMessage, and MailMessage.

Referenced by Swift_Plugins_RedirectingPlugin\_restoreMessage().