Kajona\System\System\Mail

This class can be used to generate and send emails This class is able to send plaintext mails, html mails, mails with attachements and variations of these. To send a mail, a call could be $objMail = new Mail(); $objMail->setSender("test@kajona.de"); $objMail->setSenderName("Kajona System"); $objMail->addTo("sidler@localhost"); $objMail->setSubject("Kajona test mail"); $objMail->setText("This is the plain text"); $objMail->setHtml("This is<br />the <b>html-content</b><br /><img src=\"cid:kajona_poweredby.png\" />"); $objMail->addAttachement("/portal/pics/kajona/login_logo.gif"); $objMail->addAttachement("/portal/pics/kajona/kajona_poweredby.png", "", true); $objMail->sendMail(); The subject and the recipients name are encoded by a chunked utf-8 byte string.

If your system runs on php >= 5.3, all text-based content will be encoded by quoted printables.

Synopsis

class Mail {
}

Members

private

  • $arrFiles
  • $arrHeader
  • $arrayBcc
  • $arrayCc
  • $arrayTo
  • $bitFileAttached
  • $bitMultipart
  • $strEndOfLine
  • $strHtml
  • $strSender
  • $strSenderName
  • $strSubject
  • $strText

Methods

private

  • encodeText() — Encodes some text to be places as encoded, chunked text-stream.

public