Class MailMimePart (namespace Nette\Mail)


MIME message part.

Object
   |
   --MailMimePart

Direct Known Sub-classes:

Copyright: Copyright (c) 2004, 2010 David Grudl
Located: in /Mail/MailMimePart.php (line 25)
Public Method Summary
MailMimePart
addPart ([MailMimePart $part = NULL])
Adds or creates new multipart.
MailMimePart
clearHeader (string $name)
Removes a header.
static string
encodeQuotedPrintable (string $s)
Converts a 8 bit string to a quoted-printable string.
string
Returns encoded message.
mixed
getBody ()
Gets textual body.
string
getEncodedHeader (string $name, [string $charset = 'UTF-8'])
Returns an encoded header.
string
Returns Content-Transfer-Encoding header.
mixed
getHeader (string $name)
Returns a header.
array
Returns all headers.
MailMimePart
setBody (mixed $body)
Sets textual body.
MailMimePart
setContentType (string $contentType, [string $charset = NULL])
Sets Content-Type header.
MailMimePart
setEncoding (string $encoding)
Sets Content-Transfer-Encoding header.
MailMimePart
setHeader (string $name, string|array $value, [bool $append = FALSE])
Sets a header.
Methods Inherited From Object
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()
Constant Summary
string ENCODING_7BIT '7bit'

line 29

encoding
string ENCODING_8BIT '8bit'

line 30

encoding
string ENCODING_BASE64 'base64'

line 28

encoding
string ENCODING_QUOTED_PRINTABLE 'quoted-printable'

line 31

encoding

Method Details

line 211

addPart

public MailMimePart addPart ([MailMimePart $part = NULL])

Adds or creates new multipart.

Input
MailMimePart $part
Output
MailMimePart  

line 110

clearHeader

public MailMimePart clearHeader (string $name)

Removes a header.

Input
string $name
Output
MailMimePart provides a fluent interface

line 361

encodeQuotedPrintable

public static string encodeQuotedPrintable (string $s)

Converts a 8 bit string to a quoted-printable string.

Input
string $s
Output
string  

line 250

generateMessage

public string generateMessage ()

Returns encoded message.

Output
string  

line 235

getBody

public mixed getBody ()

Gets textual body.

Output
mixed  

line 124

getEncodedHeader

public string getEncodedHeader (string $name, [string $charset = 'UTF-8'])

Returns an encoded header.

Input
string $name
string $charset
Output
string  

line 199

getEncoding

public string getEncoding ()

Returns Content-Transfer-Encoding header.

Output
string  

line 98

getHeader

public mixed getHeader (string $name)

Returns a header.

Input
string $name
Output
mixed  

line 161

getHeaders

public array getHeaders ()

Returns all headers.

Output
array  

line 223

setBody

public MailMimePart setBody (mixed $body)

Sets textual body.

Input
mixed $body
Output
MailMimePart provides a fluent interface

line 174

setContentType

public MailMimePart setContentType (string $contentType, [string $charset = NULL])

Sets Content-Type header.

Input
string $contentType
string $charset
Output
MailMimePart provides a fluent interface

line 187

setEncoding

public MailMimePart setEncoding (string $encoding)

Sets Content-Transfer-Encoding header.

Input
string $encoding
Output
MailMimePart provides a fluent interface

line 57

setHeader

public MailMimePart setHeader (string $name, string|array $value, [bool $append = FALSE])

Sets a header.

Input
string $name
string|array $value value or pair email => name
bool $append
Output
MailMimePart provides a fluent interface