Changeset 5948 in spip-zone
- Timestamp:
- Oct 6, 2006, 4:27:00 PM (15 years ago)
- Location:
- _plugins_/_stable_/forms/1_9_1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/_stable_/forms/1_9_1/inc/forms.php
r5946 r5948 291 291 //$mess_iso = unicode2charset(html2unicode(charset2unicode($corps_mail)),'iso-8859-1'); 292 292 //mail($dest, $sujet, $mess_iso, $head); 293 envoyer_mail($dest, $sujet, $corps_mail, "formulaire@".$_SERVER["HTTP_HOST"], $headers = ""); 293 $headers = ""; 294 if (preg_match(",<html>.*</html>,",$corps_mail)){ 295 $charset = $GLOBALS['meta']['charset']; 296 $headers .= 297 "MIME-Version: 1.0\n". 298 "Content-Type: text/html; charset=$charset\n". 299 "Content-Transfer-Encoding: 8bit\n"; 300 } 301 envoyer_mail($dest, $sujet, $corps_mail, "formulaire@".$_SERVER["HTTP_HOST"], $headers); 294 302 } 295 303 if ($email_dest != '') { … … 300 308 //$mess_iso = unicode2charset(html2unicode(charset2unicode($corps_mail_admin)),'iso-8859-1'); 301 309 //mail($dest, $sujet, $mess_iso, $head); 302 envoyer_mail($dest, $sujet, $corps_mail_admin, "formulaire@".$_SERVER["HTTP_HOST"], $headers = ""); 310 $headers = ""; 311 if (preg_match(",<html>.*</html>,",$corps_mail_admin)){ 312 $charset = $GLOBALS['meta']['charset']; 313 $headers .= 314 "MIME-Version: 1.0\n". 315 "Content-Type: text/html; charset=$charset\n". 316 "Content-Transfer-Encoding: 8bit\n"; 317 } 318 envoyer_mail($dest, $sujet, $corps_mail_admin, "formulaire@".$_SERVER["HTTP_HOST"], $headers); 303 319 } 304 320 } -
_plugins_/_stable_/forms/1_9_1/valide_form.html
r5946 r5948 56 56 // ete generee par SPIP 57 57 if (verifier_action_auteur("forms confirme reponse $id_reponse", $hash)) { 58 $env = unserialize('[(#ENV |texte_script)]');58 $env = unserialize('[(#ENV*|texte_script)]'); 59 59 Forms_generer_mail_reponse_formulaire($id_form, $id_reponse, $env); 60 60 }
Note: See TracChangeset
for help on using the changeset viewer.