[ Index ]
 

Code source de Typo3 4.1.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/t3lib/ -> class.t3lib_formmail.php (sommaire)

Contains a class for formmail $Id: class.t3lib_formmail.php 2583 2007-10-17 10:24:53Z mundaun $ Revised for TYPO3 3.6 July/2003 by Kasper Skaarhoj

Author: Kasper Skaarhoj <kasperYYYY@typo3.com>
Poids: 246 lignes (10 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

t3lib_formmail:: (3 méthodes):
  start()
  addAttachment()
  sanitizeHeaderString()


Classe: t3lib_formmail  - X-Ref

Formmail class, used by the TYPO3 "cms" extension (default frontend) to send email forms.

start($V,$base64=false)   X-Ref
Start function
This class is able to generate a mail in formmail-style from the data in $V
Fields:

[recipient]:            email-adress of the one to receive the mail. If array, then all values are expected to be recipients
[attachment]:        ....

[subject]:            The subject of the mail
[from_email]:        Sender email. If not set, [email] is used
[from_name]:            Sender name. If not set, [name] is used
[replyto_email]:        Reply-to email. If not set [from_email] is used
[replyto_name]:        Reply-to name. If not set [from_name] is used
[organisation]:        Organisation (header)
[priority]:            Priority, 1-5, default 3
[html_enabled]:        If mail is sent as html
[use_base64]:        If set, base64 encoding will be used instead of quoted-printable

param: array        Contains values for the field names listed above (with slashes removed if from POST input)
param: boolean        Whether to base64 encode the mail content
return: void

addAttachment($file, $filename)   X-Ref
Adds an attachment to the mail

param: string        The absolute path to the file to add as attachment
param: string        The files original filename (not necessarily the same as the current since this could be uploaded files...)
return: boolean        True if the file existed and was added.

sanitizeHeaderString($string)   X-Ref
Checks string for suspicious characters

param: string    String to check
return: string    Valid or empty string



Généré le : Sun Nov 25 17:13:16 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics