Piwik\

Mail

Class for sending mails, for more information see: http://framework.zend.com/manual/en/zend.mail.html

Methods

The class defines the following methods:

__construct()

Constructor.

Signature

  • It accepts the following parameter(s):
    • $charset (string) — charset, defaults to utf-8

setDefaultFromPiwik()

Signature

  • It does not return anything.

setWrappedHtmlBody()

Signature

  • It accepts the following parameter(s):

  • It does not return anything.

setFrom()

Sets the sender.

Signature

  • It accepts the following parameter(s):
    • $email (string) — Email address of the sender.
    • $name (null|string) — Name of the sender.
  • It returns a Zend_Mail value.

setReplyTo()

Set Reply-To Header

Signature

  • It accepts the following parameter(s):

    • $email (string) —

    • $name (null|string) —

  • It returns a Zend_Mail value.

send()

Signature

  • It accepts the following parameter(s):

    • $transport
  • It does not return anything.

createAttachment()

Signature

  • It accepts the following parameter(s):

    • $body

    • $mimeType

    • $disposition

    • $encoding

    • $filename

  • It does not return anything.

setSubject()

Signature

  • It accepts the following parameter(s):

    • $subject
  • It does not return anything.

sanitiseString()

Replaces characters known to appear incorrectly in some email clients

Signature

  • It accepts the following parameter(s):

    • $string (Piwik\$string) —
  • It returns a mixed value.