laloire33150
Messages postés94Date d'inscriptiondimanche 7 octobre 2007StatutMembreDernière intervention25 novembre 2009
-
22 déc. 2008 à 18:35
laloire33150
Messages postés94Date d'inscriptiondimanche 7 octobre 2007StatutMembreDernière intervention25 novembre 2009
-
22 déc. 2008 à 23:09
Error convertoring HTML to XHTML: System.ArgumentException: The empty string '' is not a valid name.
at System.Xml.XmlTextWriter.ValidateName(String name, Boolean NCName)
at System.Xml.XmlTextWriter.InternalWriteProcessingInstruction(String name, String text)
at System.Xml.XmlTextWriter.WriteProcessingInstruction(String name, String text)
at System.Xml.XmlWriter.WriteNode(XmlReader reader, Boolean defattr)
at FreeTextBoxControls.Support.Formatter.HtmlToXhtml(String input)
$dest = "fmactivite@gmail.com"; /* A qui s'adresse ce mail (TO) */
$copy_dest = ""; /* Email pour la Copie Carbone (CC) */
$cache_dest = ""; /* Email pour la Copie Carbone (BCC) */
$objet_page = "inscription a la formation"; /* Objet du mail (utile si vous utilisez ce script sur plusieures pages de votre site) */
$redirection = "merci1.html"; /* Redirection vers une autre page une fois l'envoie effectué */
$priority = "3"; /* Permet de définir la priorité du mail, les valeurs vont de 1 (urgent) à 5 (priorité basse) */
$reponse=StripSlashes("Merci, votre mail a bien été envoyé !"); /* Réponse de l'envoi du mail*/
/* FIN DU PARAMETRAGE */
/* ########################### NE RIEN TOUCHER EN DESSOUS ################################ */
$url_redir = $redirection;
class Mail {
var $sendto= array();
var $from, $msubject;
var $acc= array();
var $abcc= array();
var $aattach= array();
var $priorities= array( '1 (Highest)', '2 (High)', '3 (Normal)', '4 (Low)', '5 (Lowest)' );
// Mail contructor
function Mail() {
$this->autoCheck( true );
}
/* autoCheck( $boolean )
* activate or desactivate the email addresses validator
* ex: autoCheck( true ) turn the validator on
* by default autoCheck feature is on
*/
// envoie du mail aux destinataires principaux
for( $i=0; $i< sizeof($this->sendto); $i++ ) {
$res = mail($this->sendto[$i], $this->msubject,$body, $this->headers);
// TODO : trmt res
}
}
/* Organization( $org )
* set the Organisation header
*/
/* Priority( $priority )
* set the mail priority
* $priority : integer taken between 1 (highest) and 5 ( lowest )
* ex: $m->Priority(1) ; => Highest
*/
/* Attach( $filename, $filetype )
* attach a file to the mail
* $filename : path of the file to attach
* $filetype : MIME-type of the file. default to 'application/x-unknown-content-type'
* $disposition : instruct the Mailclient to display the file if possible ("inline") or always as a link ("attachment")
* possible values are "inline", "attachment"
*/
function Attach( $filename, $filetype='application/x-unknown-content-type', $disposition = "inline" ) {
// TODO : si filetype="", alors chercher dans un tablo de MT connus / extension du fichier
$this->aattach[] = $filename;
$this->actype[] = $filetype;
$this->adispo[] = $disposition;
}
/* Get()
* return the whole e-mail , headers + message
* can be used for displaying the message in plain text or logging it
*/
/* CheckAdresses()
* check validity of email addresses
* if unvalid, output an error message and exit, this may be customized
* $aad : array of emails addresses
*/
laloire33150
Messages postés94Date d'inscriptiondimanche 7 octobre 2007StatutMembreDernière intervention25 novembre 2009 22 déc. 2008 à 20:18
je suis bien d'accord avec toi, mais j'ai un souci, ce n'est pas moi qui est creer ce php, et je suis perdu, je ne sais pas ou mettre les variables,
et surtout je ne voudrais pas me trompe dans mes variable peux tu me donner un exemple ?