category | OSS |
---|---|
package | OSS_Mail |
copyright | Copyright (c) 2007 - 2012, Open Source Solutions Limited, Dublin, Ireland |
license | New BSD License |
__construct($charSet) : void
Calls Zend_Mail::__construct().
amendString(string $string) : string
Takes care of the UTF-8 characters and most importantly the double quotes, which can cause serious issues if appear in from, to, cc, bcc or returnto. Automatically called by send() where necessary.
string
string
attachFile(string $filePath, boolean $embed) : boolean
Embedding the images into an HTML letter happens automatically.
string
the path to the file to attach
boolean
default false if true then the file will be embedded instead of attached
boolean
getMimeByExtension(string $extension) : string
Please note that a good few file formats have more than one MIME types, depending on the OS or the browser, etc, but this method only returns with the "best", most compatible one. Returns with "application/octet-stream" if did not find a matching MIME type.
string
string
sendMail(array $params) : object: void
Throws a Zend_Mail_Exception on error. Returns with a Zend_Mail object on success. The images in the HtmlBody will automatically be embedded.
array
\Zend_Mail_Exception |
---|
object
Zend_Mail$_mimeTypes : array
ERR_INSUFFICIENT_DATA