Documentation TYPO3 par Ameos |
Definition at line 193 of file class.t3lib_htmlmail.php.
t3lib_htmlmail::t3lib_htmlmail | ( | ) |
Constructor. If the configuration variable forceReturnPath is set, calls to mail will be called with a 5th parameter. See function sendTheMail for more info
Definition at line 261 of file class.t3lib_htmlmail.php.
t3lib_htmlmail::start | ( | ) |
Definition at line 268 of file class.t3lib_htmlmail.php.
References t3lib_div::getHostname(), and useQuotedPrintable().
t3lib_htmlmail::useQuotedPrintable | ( | ) |
[Describe function...]
Definition at line 306 of file class.t3lib_htmlmail.php.
Referenced by start().
t3lib_htmlmail::useBase64 | ( | ) |
[Describe function...]
Definition at line 316 of file class.t3lib_htmlmail.php.
Referenced by t3lib_formmail::start().
t3lib_htmlmail::use8Bit | ( | ) |
t3lib_htmlmail::encodeMsg | ( | $ | content | ) |
[Describe function...]
[type] | $content: ... |
Definition at line 339 of file class.t3lib_htmlmail.php.
References makeBase64(), and t3lib_div::quoted_printable().
Referenced by addHTML(), addPlain(), and t3lib_formmail::start().
t3lib_htmlmail::addPlain | ( | $ | content | ) |
[Describe function...]
[type] | $content: ... |
Definition at line 349 of file class.t3lib_htmlmail.php.
References encodeMsg(), setPlain(), and substHTTPurlsInPlainText().
Referenced by t3lib_formmail::start().
t3lib_htmlmail::addAttachment | ( | $ | file | ) |
[Describe function...]
[type] | $file: ... |
Definition at line 361 of file class.t3lib_htmlmail.php.
References getExtendedURL(), and split_fileref().
t3lib_htmlmail::addHTML | ( | $ | file | ) |
[Describe function...]
[type] | $file: ... |
Definition at line 379 of file class.t3lib_htmlmail.php.
References encodeMsg(), extractFramesInfo(), extractHyperLinks(), extractMediaLinks(), fetchHTML(), fetchHTMLMedia(), substHREFsInHTML(), and substMediaNamesInHTML().
t3lib_htmlmail::extractHtmlInit | ( | $ | html, | |
$ | url | |||
) |
External used to extract HTML-parts
[type] | $html: ... | |
[type] | $url: ... |
Definition at line 402 of file class.t3lib_htmlmail.php.
t3lib_htmlmail::send | ( | $ | recipient | ) |
[Describe function...]
[type] | $recipient: ... |
Definition at line 413 of file class.t3lib_htmlmail.php.
References $recipient, sendTheMail(), setContent(), and setHeaders().
t3lib_htmlmail::setHeaders | ( | ) |
Definition at line 442 of file class.t3lib_htmlmail.php.
References add_header(), t3lib_div::encodeHeader(), and quoted_printable().
Referenced by send(), and t3lib_formmail::start().
t3lib_htmlmail::setRecipient | ( | $ | recip | ) |
[Describe function...]
[type] | $recip: ... |
Definition at line 501 of file class.t3lib_htmlmail.php.
Referenced by t3lib_formmail::start().
t3lib_htmlmail::getHTMLContentType | ( | ) |
[Describe function...]
Definition at line 519 of file class.t3lib_htmlmail.php.
Referenced by constructMixed(), and setContent().
t3lib_htmlmail::setContent | ( | ) |
[Describe function...]
Definition at line 528 of file class.t3lib_htmlmail.php.
References add_header(), add_message(), constructHTML(), constructMixed(), getBoundary(), getContent(), and getHTMLContentType().
Referenced by send(), and t3lib_formmail::start().
t3lib_htmlmail::constructMixed | ( | $ | boundary | ) |
[Describe function...]
[type] | $boundary: ... |
Definition at line 555 of file class.t3lib_htmlmail.php.
References add_message(), constructHTML(), getBoundary(), getContent(), getHTMLContentType(), and makeBase64().
Referenced by setContent().
t3lib_htmlmail::constructHTML | ( | $ | boundary | ) |
[Describe function...]
[type] | $boundary: ... |
Definition at line 594 of file class.t3lib_htmlmail.php.
References add_message(), constructAlternative(), constructHTML_media(), and getBoundary().
Referenced by constructMixed(), and setContent().
t3lib_htmlmail::constructAlternative | ( | $ | boundary | ) |
[Describe function...]
[type] | $boundary: ... |
Definition at line 618 of file class.t3lib_htmlmail.php.
References add_message(), and getContent().
Referenced by constructHTML().
t3lib_htmlmail::constructHTML_media | ( | $ | boundary | ) |
[Describe function...]
[type] | $boundary: ... |
Definition at line 639 of file class.t3lib_htmlmail.php.
References add_message(), t3lib_div::inList(), and makeBase64().
Referenced by constructHTML().
t3lib_htmlmail::sendTheMail | ( | ) |
Sends the mail by calling the mail() function in php. On Linux systems this will invoke the MTA defined in php.ini (sendmail -t -i by default), on Windows a SMTP must be specified in the sys.ini. Most common MTA's on Linux has a Sendmail interface, including Postfix and Exim. For setting the return-path correctly, the parameter -f has to be added to the system call to sendmail. This obviously does not have any effect on Windows, but on Sendmail compliant systems this works. If safe mode is enabled, then extra parameters is not allowed, so a safe mode check is made before the mail() command is invoked. When using the -f parameter, some MTA's will put an X-AUTHENTICATION-WARNING saying that the return path was modified manually with the -f flag. To disable this warning make sure that the user running Apache is in the /etc/mail/trusted-users table.
POSTFIX: With postfix version below 2.0 there is a problem that the -f parameter can not be used in conjunction with -t. Postfix will give an error in the maillog:
cannot handle command-line recipients with -t
The -f parameter is only enabled if the parameter forceReturnPath is enabled in the install tool.
This whole problem of return-path turns out to be quite tricky. If you have a solution that works better, on all standard MTA's then we are very open for suggestions.
With time this function should be made such that several ways of sending the mail is possible (local MTA, smtp other).
Definition at line 692 of file class.t3lib_htmlmail.php.
References $returnPath, and $theParts.
Referenced by send().
t3lib_htmlmail::getBoundary | ( | ) |
[Describe function...]
Definition at line 758 of file class.t3lib_htmlmail.php.
Referenced by constructHTML(), constructMixed(), and setContent().
t3lib_htmlmail::setPlain | ( | $ | content | ) |
[Describe function...]
[type] | $content: ... |
Definition at line 770 of file class.t3lib_htmlmail.php.
Referenced by addPlain().
t3lib_htmlmail::setHtml | ( | $ | content | ) |
[Describe function...]
[type] | $content: ... |
Definition at line 781 of file class.t3lib_htmlmail.php.
t3lib_htmlmail::add_header | ( | $ | header | ) |
[Describe function...]
[type] | $header: ... |
Definition at line 792 of file class.t3lib_htmlmail.php.
References t3lib_div::encodeHeader(), and quoted_printable().
Referenced by setContent(), and setHeaders().
t3lib_htmlmail::add_message | ( | $ | string | ) |
[Describe function...]
[type] | $string: ... |
Definition at line 813 of file class.t3lib_htmlmail.php.
Referenced by constructAlternative(), constructHTML(), constructHTML_media(), constructMixed(), and setContent().
t3lib_htmlmail::getContent | ( | $ | type | ) |
[Describe function...]
[type] | $type: ... |
Definition at line 824 of file class.t3lib_htmlmail.php.
Referenced by constructAlternative(), constructMixed(), and setContent().
t3lib_htmlmail::preview | ( | ) |
t3lib_htmlmail::fetchHTML | ( | $ | file | ) |
[type] | $file: ... |
Definition at line 861 of file class.t3lib_htmlmail.php.
References extParseUrl(), and getURL().
Referenced by addHTML().
t3lib_htmlmail::fetchHTMLMedia | ( | ) |
[Describe function...]
Definition at line 879 of file class.t3lib_htmlmail.php.
References getExtendedURL().
Referenced by addHTML().
t3lib_htmlmail::extractMediaLinks | ( | ) |
[Describe function...]
Definition at line 900 of file class.t3lib_htmlmail.php.
References absRef(), get_tag_attributes(), split_fileref(), and tag_regex().
Referenced by addHTML().
t3lib_htmlmail::extractHyperLinks | ( | ) |
[Describe function...]
Definition at line 977 of file class.t3lib_htmlmail.php.
References absRef(), get_tag_attributes(), and tag_regex().
Referenced by addHTML().
t3lib_htmlmail::extractFramesInfo | ( | ) |
[Describe function...]
Definition at line 1026 of file class.t3lib_htmlmail.php.
References absRef(), get_tag_attributes(), and tag_regex().
Referenced by addHTML().
t3lib_htmlmail::substMediaNamesInHTML | ( | $ | absolute | ) |
[Describe function...]
[type] | $absolute: ... |
Definition at line 1052 of file class.t3lib_htmlmail.php.
References absRef(), and fixRollOvers().
Referenced by addHTML().
t3lib_htmlmail::substHREFsInHTML | ( | ) |
[Describe function...]
Definition at line 1079 of file class.t3lib_htmlmail.php.
References absRef().
Referenced by addHTML().
t3lib_htmlmail::substHTTPurlsInPlainText | ( | $ | content | ) |
[Describe function...]
[type] | $content: ... |
Definition at line 1107 of file class.t3lib_htmlmail.php.
Referenced by addPlain().
t3lib_htmlmail::fixRollOvers | ( | ) |
[Describe function...]
Definition at line 1143 of file class.t3lib_htmlmail.php.
References $part.
Referenced by substMediaNamesInHTML().
t3lib_htmlmail::makeBase64 | ( | $ | inputstr | ) |
[type] | $inputstr: ... |
Definition at line 1190 of file class.t3lib_htmlmail.php.
Referenced by constructHTML_media(), constructMixed(), and encodeMsg().
t3lib_htmlmail::getExtendedURL | ( | $ | url | ) |
[Describe function...]
[type] | $url: ... |
Definition at line 1201 of file class.t3lib_htmlmail.php.
References getMimeType(), getURL(), and split_fileref().
Referenced by addAttachment(), and fetchHTMLMedia().
t3lib_htmlmail::addUserPass | ( | $ | url | ) |
[Describe function...]
[type] | $url: ... |
Definition at line 1223 of file class.t3lib_htmlmail.php.
Referenced by getURL().
t3lib_htmlmail::getURL | ( | $ | url | ) |
[Describe function...]
[type] | $url: ... |
Definition at line 1239 of file class.t3lib_htmlmail.php.
References addUserPass(), and t3lib_div::getURL().
Referenced by t3lib_formmail::addAttachment(), fetchHTML(), and getExtendedURL().
t3lib_htmlmail::getStrippedURL | ( | $ | url | ) |
[Describe function...]
[type] | $url: ... |
Definition at line 1251 of file class.t3lib_htmlmail.php.
t3lib_htmlmail::getMimeType | ( | $ | url | ) |
This function returns the mime type of the file specified by the url
string | $url: the url |
Definition at line 1272 of file class.t3lib_htmlmail.php.
References $headers, and t3lib_div::getURL().
Referenced by getExtendedURL().
t3lib_htmlmail::absRef | ( | $ | ref | ) |
[Describe function...]
[type] | $ref: ... |
Definition at line 1290 of file class.t3lib_htmlmail.php.
Referenced by extractFramesInfo(), extractHyperLinks(), extractMediaLinks(), substHREFsInHTML(), and substMediaNamesInHTML().
t3lib_htmlmail::split_fileref | ( | $ | fileref | ) |
[Describe function...]
[type] | $fileref: ... |
Definition at line 1310 of file class.t3lib_htmlmail.php.
Referenced by addAttachment(), t3lib_formmail::addAttachment(), extractMediaLinks(), and getExtendedURL().
t3lib_htmlmail::extParseUrl | ( | $ | path | ) |
[Describe function...]
[type] | $path: ... |
Definition at line 1337 of file class.t3lib_htmlmail.php.
Referenced by fetchHTML().
t3lib_htmlmail::tag_regex | ( | $ | tagArray | ) |
[Describe function...]
[type] | $tagArray: ... |
Definition at line 1352 of file class.t3lib_htmlmail.php.
Referenced by extractFramesInfo(), extractHyperLinks(), and extractMediaLinks().
t3lib_htmlmail::get_tag_attributes | ( | $ | tag | ) |
analyses a HTML-tag $tag is either like this "<TAG OPTION ATTRIB=VALUE>" or this " OPTION ATTRIB=VALUE>" which means you can omit the tag-name returns an array with the attributes as keys in lower-case If an attribute is empty (like OPTION) the value of that key is just empty. Check it with is_set();
[type] | $tag: ... |
Definition at line 1374 of file class.t3lib_htmlmail.php.
Referenced by extractFramesInfo(), extractHyperLinks(), and extractMediaLinks().
t3lib_htmlmail::quoted_printable | ( | $ | string | ) |
Implementation of quoted-printable encode. This function was a duplicate of t3lib_div::quoted_printable, thus it's going to be removed.
string | Content to encode |
Definition at line 1416 of file class.t3lib_htmlmail.php.
References t3lib_div::quoted_printable().
Referenced by add_header(), and setHeaders().
t3lib_htmlmail::convertName | ( | $ | name | ) |
[Describe function...]
[type] | $name: ... |
Definition at line 1427 of file class.t3lib_htmlmail.php.