TYPO3
7.6
|
Protected Member Functions | |
_getIdField () | |
_becomeMimePart () | |
Protected Member Functions inherited from Swift_Mime_MimePart | |
_fixHeaders () | |
_setNestingLevel ($level) | |
_convertString ($string) | |
Protected Member Functions inherited from Swift_Mime_SimpleMimeEntity | |
_bodyToString () | |
_bodyToByteStream (Swift_InputByteStream $is) | |
_getIdField () | |
_getHeaderFieldModel ($field) | |
_setHeaderFieldModel ($field, $model) | |
_getHeaderParameter ($field, $parameter) | |
_setHeaderParameter ($field, $parameter, $value) | |
_fixHeaders () | |
_getCache () | |
_getGrammar () | |
_clearCache () | |
getRandomId () | |
Private Member Functions | |
_getTopNestingLevel () | |
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 |
Protected Attributes inherited from Swift_Mime_MimePart | |
$_userFormat | |
$_userCharset | |
$_userDelSp | |
The default email message class.
Definition at line 16 of file SimpleMessage.php.
__construct | ( | Swift_Mime_HeaderSet | $headers, |
Swift_Mime_ContentEncoder | $encoder, | ||
Swift_KeyCache | $cache, | ||
Swift_Mime_Grammar | $grammar, | ||
$charset = null |
|||
) |
Create a new SimpleMessage with $headers, $encoder and $cache.
Swift_Mime_HeaderSet | $headers | |
Swift_Mime_ContentEncoder | $encoder | |
Swift_KeyCache | $cache | |
Swift_Mime_Grammar | $grammar | |
string | $charset |
Definition at line 27 of file SimpleMessage.php.
References Swift_Mime_MimeEntity\getHeaders(), Swift_Mime_MimeEntity\getId(), setDate(), and Swift_Mime_SimpleMimeEntity\setId().
__toString | ( | ) |
Returns a string representation of this object.
Definition at line 594 of file SimpleMessage.php.
References toString().
|
protected |
Turn the body of this message into a child of itself if needed
Definition at line 622 of file SimpleMessage.php.
References Swift_Mime_SimpleMimeEntity\_getCache(), Swift_Mime_SimpleMimeEntity\_getGrammar(), _getTopNestingLevel(), Swift_Mime_MimeEntity\getBody(), Swift_Mime_SimpleMimeEntity\getEncoder(), and Swift_Mime_MimeEntity\getHeaders().
Referenced by Swift_Message\saveMessage(), toByteStream(), and toString().
|
protected |
Definition at line 616 of file SimpleMessage.php.
|
private |
Get the highest nesting level nested inside this message
Definition at line 637 of file SimpleMessage.php.
References Swift_Mime_MimeEntity\getChildren(), and getNestingLevel().
Referenced by _becomeMimePart().
addBcc | ( | $address, | |
$name = null |
|||
) |
Add a Bcc: address to this message.
If $name is passed this name will be associated with the address.
string | $address | |
string | $name | optional |
Definition at line 401 of file SimpleMessage.php.
addCc | ( | $address, | |
$name = null |
|||
) |
Add a Cc: address to this message.
If $name is passed this name will be associated with the address.
string | $address | |
string | $name | optional |
Definition at line 349 of file SimpleMessage.php.
addFrom | ( | $address, | |
$name = null |
|||
) |
Add a From: address to this message.
If $name is passed this name will be associated with the address.
string | $address | |
string | $name | optional |
Definition at line 186 of file SimpleMessage.php.
addReplyTo | ( | $address, | |
$name = null |
|||
) |
Add a Reply-To: address to this message.
If $name is passed this name will be associated with the address.
string | $address | |
string | $name | optional |
Definition at line 240 of file SimpleMessage.php.
References getReplyTo(), and setReplyTo().
addTo | ( | $address, | |
$name = null |
|||
) |
Add a To: address to this message.
If $name is passed this name will be associated with the address.
string | $address | |
string | $name | optional |
Definition at line 294 of file SimpleMessage.php.
attach | ( | Swift_Mime_MimeEntity | $entity | ) |
Attach a Swift_Mime_MimeEntity such as an Attachment or MimePart.
Swift_Mime_MimeEntity | $entity |
Definition at line 527 of file SimpleMessage.php.
References Swift_Mime_MimeEntity\getChildren(), and Swift_Mime_MimeEntity\setChildren().
Referenced by Swift_Message\addPart(), and embed().
detach | ( | Swift_Mime_MimeEntity | $entity | ) |
Remove an already attached entity.
Swift_Mime_MimeEntity | $entity |
Definition at line 541 of file SimpleMessage.php.
References Swift_Mime_MimeEntity\getChildren(), and Swift_Mime_MimeEntity\setChildren().
embed | ( | Swift_Mime_MimeEntity | $entity | ) |
Attach a Swift_Mime_MimeEntity and return it's CID source. This method should be used when embedding images or other data in a message.
Swift_Mime_MimeEntity | $entity |
Definition at line 562 of file SimpleMessage.php.
References attach().
getBcc | ( | ) |
Get the Bcc addresses of this message.
Implements Swift_Mime_Message.
Definition at line 438 of file SimpleMessage.php.
References Swift_Mime_SimpleMimeEntity\_getHeaderFieldModel().
Referenced by addBcc().
getCc | ( | ) |
Get the Cc address of this message.
Implements Swift_Mime_Message.
Definition at line 386 of file SimpleMessage.php.
References Swift_Mime_SimpleMimeEntity\_getHeaderFieldModel().
Referenced by addCc().
getDate | ( | ) |
Get the date at which this message was created.
Implements Swift_Mime_Message.
Definition at line 112 of file SimpleMessage.php.
References Swift_Mime_SimpleMimeEntity\_getHeaderFieldModel().
getFrom | ( | ) |
Get the from address of this message.
Implements Swift_Mime_Message.
Definition at line 225 of file SimpleMessage.php.
References Swift_Mime_SimpleMimeEntity\_getHeaderFieldModel().
Referenced by addFrom().
getNestingLevel | ( | ) |
Always returns LEVEL_TOP for a message instance.
Implements Swift_Mime_MimeEntity.
Definition at line 60 of file SimpleMessage.php.
Referenced by _getTopNestingLevel().
getPriority | ( | ) |
Get the priority of this message.
The returned value is an integer where 1 is the highest priority and 5 is the lowest.
Definition at line 484 of file SimpleMessage.php.
References Swift_Mime_SimpleMimeEntity\_getHeaderFieldModel().
getReadReceiptTo | ( | ) |
Get the addresses to which a read-receipt will be sent.
Definition at line 515 of file SimpleMessage.php.
References Swift_Mime_SimpleMimeEntity\_getHeaderFieldModel().
getReplyTo | ( | ) |
Get the reply-to address of this message.
Implements Swift_Mime_Message.
Definition at line 279 of file SimpleMessage.php.
References Swift_Mime_SimpleMimeEntity\_getHeaderFieldModel().
Referenced by addReplyTo().
getReturnPath | ( | ) |
Get the return-path (bounce address) of this message.
Implements Swift_Mime_Message.
Definition at line 138 of file SimpleMessage.php.
References Swift_Mime_SimpleMimeEntity\_getHeaderFieldModel().
getSender | ( | ) |
Get the sender of this message.
Implements Swift_Mime_Message.
Definition at line 171 of file SimpleMessage.php.
References Swift_Mime_SimpleMimeEntity\_getHeaderFieldModel().
getSubject | ( | ) |
Get the subject of this message.
Implements Swift_Mime_Message.
Definition at line 86 of file SimpleMessage.php.
References Swift_Mime_SimpleMimeEntity\_getHeaderFieldModel().
getTo | ( | ) |
Get the To addresses of this message.
Implements Swift_Mime_Message.
Definition at line 334 of file SimpleMessage.php.
References Swift_Mime_SimpleMimeEntity\_getHeaderFieldModel().
Referenced by addTo().
setBcc | ( | $addresses, | |
$name = null |
|||
) |
Set the Bcc addresses of this message.
If $name is passed and the first parameter is a string, this name will be associated with the address.
mixed | $addresses | |
string | $name | optional |
Implements Swift_Mime_Message.
Definition at line 420 of file SimpleMessage.php.
References Swift_Mime_SimpleMimeEntity\_setHeaderFieldModel(), and Swift_Mime_MimeEntity\getHeaders().
Referenced by addBcc().
setCc | ( | $addresses, | |
$name = null |
|||
) |
Set the Cc addresses of this message.
If $name is passed and the first parameter is a string, this name will be associated with the address.
mixed | $addresses | |
string | $name | optional |
Implements Swift_Mime_Message.
Definition at line 368 of file SimpleMessage.php.
References Swift_Mime_SimpleMimeEntity\_setHeaderFieldModel(), and Swift_Mime_MimeEntity\getHeaders().
Referenced by addCc().
setDate | ( | $date | ) |
Set the date at which this message was created.
int | $date |
Implements Swift_Mime_Message.
Definition at line 98 of file SimpleMessage.php.
References Swift_Mime_SimpleMimeEntity\_setHeaderFieldModel(), and Swift_Mime_MimeEntity\getHeaders().
Referenced by __construct().
setFrom | ( | $addresses, | |
$name = null |
|||
) |
Set the from address of this message.
You may pass an array of addresses if this message is from multiple people.
If $name is passed and the first parameter is a string, this name will be associated with the address.
string | array | $addresses | |
string | $name | optional |
Implements Swift_Mime_Message.
Definition at line 207 of file SimpleMessage.php.
References Swift_Mime_SimpleMimeEntity\_setHeaderFieldModel(), and Swift_Mime_MimeEntity\getHeaders().
Referenced by addFrom().
setPriority | ( | $priority | ) |
Set the priority of this message.
The value is an integer where 1 is the highest priority and 5 is the lowest.
int | $priority |
Definition at line 452 of file SimpleMessage.php.
References Swift_Mime_SimpleMimeEntity\_setHeaderFieldModel(), elseif, and Swift_Mime_MimeEntity\getHeaders().
setReadReceiptTo | ( | $addresses | ) |
Ask for a delivery receipt from the recipient to be sent to $addresses.
array | $addresses |
Definition at line 500 of file SimpleMessage.php.
References Swift_Mime_SimpleMimeEntity\_setHeaderFieldModel(), and Swift_Mime_MimeEntity\getHeaders().
setReplyTo | ( | $addresses, | |
$name = null |
|||
) |
Set the reply-to address of this message.
You may pass an array of addresses if replies will go to multiple people.
If $name is passed and the first parameter is a string, this name will be associated with the address.
string | $addresses | |
string | $name | optional |
Implements Swift_Mime_Message.
Definition at line 261 of file SimpleMessage.php.
References Swift_Mime_SimpleMimeEntity\_setHeaderFieldModel(), and Swift_Mime_MimeEntity\getHeaders().
Referenced by addReplyTo().
setReturnPath | ( | $address | ) |
Set the return-path (the bounce address) of this message.
string | $address |
Implements Swift_Mime_Message.
Definition at line 124 of file SimpleMessage.php.
References Swift_Mime_SimpleMimeEntity\_setHeaderFieldModel(), and Swift_Mime_MimeEntity\getHeaders().
setSender | ( | $address, | |
$name = null |
|||
) |
Set the sender of this message.
This does not override the From field, but it has a higher significance.
string | $address | |
string | $name | optional |
Implements Swift_Mime_Message.
Definition at line 153 of file SimpleMessage.php.
References Swift_Mime_SimpleMimeEntity\_setHeaderFieldModel(), and Swift_Mime_MimeEntity\getHeaders().
setSubject | ( | $subject | ) |
Set the subject of this message.
string | $subject |
Implements Swift_Mime_Message.
Definition at line 72 of file SimpleMessage.php.
References Swift_Mime_SimpleMimeEntity\_setHeaderFieldModel(), and Swift_Mime_MimeEntity\getHeaders().
Referenced by Swift_Message\__construct().
setTo | ( | $addresses, | |
$name = null |
|||
) |
Set the to addresses of this message.
If multiple recipients will receive the message an array should be used. Example: array('recei', ' ver@ domai n.or gother' => 'A name') @dom ain.o rg
If $name is passed and the first parameter is a string, this name will be associated with the address.
mixed | $addresses | |
string | $name | optional |
Implements Swift_Mime_Message.
Definition at line 316 of file SimpleMessage.php.
References Swift_Mime_SimpleMimeEntity\_setHeaderFieldModel(), and Swift_Mime_MimeEntity\getHeaders().
Referenced by addTo().
toByteStream | ( | Swift_InputByteStream | $is | ) |
Write this message to a Swift_InputByteStream.
Swift_InputByteStream | $is |
Implements Swift_Mime_MimeEntity.
Definition at line 604 of file SimpleMessage.php.
References _becomeMimePart(), Swift_Mime_MimeEntity\getBody(), Swift_Mime_MimeEntity\getChildren(), and Swift_Mime_MimeEntity\setChildren().
toString | ( | ) |
Get this message as a complete string.
Implements Swift_Mime_MimeEntity.
Definition at line 574 of file SimpleMessage.php.
References _becomeMimePart(), Swift_Mime_MimeEntity\getBody(), Swift_Mime_MimeEntity\getChildren(), and Swift_Mime_MimeEntity\setChildren().
Referenced by __toString().