Packages

  • Nette
    • Application
    • Caching
    • Collections
    • Config
    • Forms
    • IO
    • Loaders
    • Mail
    • Reflection
    • Security
    • Templates
    • Web
  • None
  • PHP

Classes

  • NMail
  • NMailMimePart
  • NSendmailMailer

Interfaces

  • IMailer
  • Overview
  • Package
  • Class
  • Tree
  • Other releases

Class NMailMimePart

MIME message part.

NObject
Extended by NMailMimePart

Direct known subclasses

NMail
Package: Nette\Mail
Author: David Grudl
Located at Mail/MailMimePart.php
Methods summary
public NMailMimePart
# setHeader( string $name, string|array $value, boolean $append = FALSE )

Sets a header.

Sets a header.

Parameters

$name
string
$value
string|array
value or pair email => name
$append
boolean

Returns

NMailMimePart
provides a fluent interface
public mixed
# getHeader( string $name )

Returns a header.

Returns a header.

Parameters

$name
string

Returns

mixed
public NMailMimePart
# clearHeader( string $name )

Removes a header.

Removes a header.

Parameters

$name
string

Returns

NMailMimePart
provides a fluent interface
public string
# getEncodedHeader( string $name )

Returns an encoded header.

Returns an encoded header.

Parameters

$name
string

Returns

string
public array
# getHeaders( )

Returns all headers.

Returns all headers.

Returns

array
public NMailMimePart
# setContentType( string $contentType, string $charset = NULL )

Sets Content-Type header.

Sets Content-Type header.

Parameters

$contentType
string
$charset
string

Returns

NMailMimePart
provides a fluent interface
public NMailMimePart
# setEncoding( string $encoding )

Sets Content-Transfer-Encoding header.

Sets Content-Transfer-Encoding header.

Parameters

$encoding
string

Returns

NMailMimePart
provides a fluent interface
public string
# getEncoding( )

Returns Content-Transfer-Encoding header.

Returns Content-Transfer-Encoding header.

Returns

string
public NMailMimePart
# addPart( NMailMimePart $part = NULL )

Adds or creates new multipart.

Adds or creates new multipart.

Parameters

$part
NMailMimePart

Returns

NMailMimePart
public NMailMimePart
# setBody( mixed $body )

Sets textual body.

Sets textual body.

Parameters

$body
mixed

Returns

NMailMimePart
provides a fluent interface
public mixed
# getBody( )

Gets textual body.

Gets textual body.

Returns

mixed
public string
# generateMessage( )

Returns encoded message.

Returns encoded message.

Returns

string
public static string
# encodeQuotedPrintable( string $s )

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

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

Parameters

$s
string

Returns

string
Methods inherited from NObject
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Constants summary
string ENCODING_BASE64 'base64'
#

encoding

encoding

string ENCODING_7BIT '7bit'
#
string ENCODING_8BIT '8bit'
#
string ENCODING_QUOTED_PRINTABLE 'quoted-printable'
#
Nette Framework 0.9.7 (for PHP 5.2) API documentation generated by ApiGen 2.3.0