Wrapper class for emails

package org.openpsa.mail

 Methods

__construct ($to, array $headers, $encoding)

Parameters

$to

$headers

$encoding

get_body ()

get_headers ()

get_recipients ()

Merges all email recipients into a comma-separated string
todo Support arrays of Cc/Bcc addresses as well

set_body ($body)

Parameters

$body

set_mime_body ($text_body, $html_body, $attachments, $embeds)

Parameters

$text_body

$html_body

$attachments

$embeds

_encode_address_field (string $value)

Helper function to work around a problem where some PEAR mail backends (or versions) trip over special characters in addresses

Parameters

$value

stringThe value to encode

Returns

stringthe encoded value

_encode_quoted_printable ($subject)

Quoted-Printable encoding for message headers if necessary
todo See if this can be replaced by quoted_printable_encode once we go to 5.3

Parameters

$subject

_process_attachments ($attachments, $method)

Parameters

$attachments

$method

_sort_encode_subject ($a, $b)

Parameters

$a

$b

 Properties

 

\Mail_mime $__mime

Mail_mime holder
 

mixed $_body

 

mixed $_encoding

 

mixed $_headers

 

mixed $_to