[ Index ] |
|
Code source de Typo3 4.1.3 |
[Code source] [Imprimer] [Statistiques]
HTML mail class $Id: class.t3lib_htmlmail.php 1609 2006-07-07 19:11:55Z mundaun $
Author: | Kasper Skaarhoj <kasperYYYY@typo3.com> |
Poids: | 1435 lignes (52 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
t3lib_htmlmail:: (49 méthodes):
t3lib_htmlmail()
start()
useQuotedPrintable()
useBase64()
use8Bit()
encodeMsg()
addPlain()
addAttachment()
addHTML()
extractHtmlInit()
send()
setHeaders()
setRecipient()
getHTMLContentType()
setContent()
constructMixed()
constructHTML()
constructAlternative()
constructHTML_media()
sendTheMail()
getBoundary()
setPlain()
setHtml()
add_header()
add_message()
getContent()
preview()
fetchHTML()
fetchHTMLMedia()
extractMediaLinks()
extractHyperLinks()
extractFramesInfo()
substMediaNamesInHTML()
substHREFsInHTML()
substHTTPurlsInPlainText()
fixRollOvers()
makeBase64()
getExtendedURL()
addUserPass()
getURL()
getStrippedURL()
getMimeType()
absRef()
split_fileref()
extParseUrl()
tag_regex()
get_tag_attributes()
quoted_printable()
convertName()
Classe: t3lib_htmlmail - X-Ref
HTML mail classt3lib_htmlmail() X-Ref |
Constructor. If the configuration variable forceReturnPath is set, calls to mail will be called with a 5th parameter. See function sendTheMail for more info return: [type] ... |
start() X-Ref |
return: [type] ... |
useQuotedPrintable() X-Ref |
[Describe function...] return: void |
useBase64() X-Ref |
[Describe function...] return: void |
use8Bit() X-Ref |
[Describe function...] return: void |
encodeMsg($content) X-Ref |
[Describe function...] param: [type] $content: ... return: [type] ... |
addPlain($content) X-Ref |
[Describe function...] param: [type] $content: ... return: [type] ... |
addAttachment($file) X-Ref |
[Describe function...] param: [type] $file: ... return: [type] ... |
addHTML($file) X-Ref |
[Describe function...] param: [type] $file: ... return: [type] ... |
extractHtmlInit($html,$url) X-Ref |
External used to extract HTML-parts param: [type] $html: ... param: [type] $url: ... return: [type] ... |
send($recipient) X-Ref |
[Describe function...] param: [type] $recipient: ... return: [type] ... |
setHeaders() X-Ref |
return: [type] ... |
setRecipient($recip) X-Ref |
[Describe function...] param: [type] $recip: ... return: [type] ... |
getHTMLContentType() X-Ref |
[Describe function...] return: [type] ... |
setContent() X-Ref |
[Describe function...] return: [type] ... |
constructMixed($boundary) X-Ref |
[Describe function...] param: [type] $boundary: ... return: [type] ... |
constructHTML($boundary) X-Ref |
[Describe function...] param: [type] $boundary: ... return: [type] ... |
constructAlternative($boundary) X-Ref |
[Describe function...] param: [type] $boundary: ... return: [type] ... |
constructHTML_media($boundary) X-Ref |
[Describe function...] param: [type] $boundary: ... return: [type] ... |
sendTheMail() X-Ref |
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). return: [type] ... |
getBoundary() X-Ref |
[Describe function...] return: [type] ... |
setPlain($content) X-Ref |
[Describe function...] param: [type] $content: ... return: [type] ... |
setHtml($content) X-Ref |
[Describe function...] param: [type] $content: ... return: [type] ... |
add_header($header) X-Ref |
[Describe function...] param: [type] $header: ... return: [type] ... |
add_message($string) X-Ref |
[Describe function...] param: [type] $string: ... return: [type] ... |
getContent($type) X-Ref |
[Describe function...] param: [type] $type: ... return: [type] ... |
preview() X-Ref |
[Describe function...] return: [type] ... |
fetchHTML($file) X-Ref |
param: [type] $file: ... return: [type] ... |
fetchHTMLMedia() X-Ref |
[Describe function...] return: [type] ... |
extractMediaLinks() X-Ref |
[Describe function...] return: [type] ... |
extractHyperLinks() X-Ref |
[Describe function...] return: [type] ... |
extractFramesInfo() X-Ref |
[Describe function...] return: [type] ... |
substMediaNamesInHTML($absolute) X-Ref |
[Describe function...] param: [type] $absolute: ... return: [type] ... |
substHREFsInHTML() X-Ref |
[Describe function...] return: [type] ... |
substHTTPurlsInPlainText($content) X-Ref |
[Describe function...] param: [type] $content: ... return: [type] ... |
fixRollOvers() X-Ref |
[Describe function...] return: [type] ... |
makeBase64($inputstr) X-Ref |
param: [type] $inputstr: ... return: [type] ... |
getExtendedURL($url) X-Ref |
[Describe function...] param: [type] $url: ... return: [type] ... |
addUserPass($url) X-Ref |
[Describe function...] param: [type] $url: ... return: [type] ... |
getURL($url) X-Ref |
[Describe function...] param: [type] $url: ... return: [type] ... |
getStrippedURL($url) X-Ref |
[Describe function...] param: [type] $url: ... return: [type] ... |
getMimeType($url) X-Ref |
This function returns the mime type of the file specified by the url param: string $url: the url return: string $mimeType: the mime type found in the header |
absRef($ref) X-Ref |
[Describe function...] param: [type] $ref: ... return: [type] ... |
split_fileref($fileref) X-Ref |
[Describe function...] param: [type] $fileref: ... return: [type] ... |
extParseUrl($path) X-Ref |
[Describe function...] param: [type] $path: ... return: [type] ... |
tag_regex($tagArray) X-Ref |
[Describe function...] param: [type] $tagArray: ... return: [type] ... |
get_tag_attributes($tag) X-Ref |
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(); param: [type] $tag: ... return: [type] ... |
quoted_printable($string) X-Ref |
Implementation of quoted-printable encode. This function was a duplicate of t3lib_div::quoted_printable, thus it's going to be removed. param: string Content to encode return: string The QP encoded string |
convertName($name) X-Ref |
[Describe function...] param: [type] $name: ... return: [type] ... |
Généré le : Sun Nov 25 17:13:16 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |