probleme avec la focntion mail
Posté : 13 janv. 2007, 16:59
SAlut otut le monde voila je rencontre actuel un soucis avec la fonction mail que je n'avais pas eu auparavant voici l'erreur
Warning: mail() [function.mail]: mail server down in /mnt/135/sdb/1/4/mondelendill/Etendard/form2mail.php on line 64
Warning: Cannot modify header information - headers already sent by (output started at /mnt/135/sdb/1/4/mondelendill/Etendard/form2mail.php:64) in /mnt/135/sdb/1/4/mondelendill/Etendard/form2mail.php on line 69
Et voila la page formulaire.php
Warning: mail() [function.mail]: mail server down in /mnt/135/sdb/1/4/mondelendill/Etendard/form2mail.php on line 64
Warning: Cannot modify header information - headers already sent by (output started at /mnt/135/sdb/1/4/mondelendill/Etendard/form2mail.php:64) in /mnt/135/sdb/1/4/mondelendill/Etendard/form2mail.php on line 69
Et voila la page formulaire.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Document sans nom</title>
<style type="text/css">
<!--
body,td,th {
font-family: Times New Roman;
font-size: 15px;
color: #FF8C00 ;
}
body {
height:1500px;
background-color:#000000;
background-image: url(images/background2.jpg);
background-repeat: no-repeat;
background-position:top;
}
a:link {
color: #FF8C00 ;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #FF8C00 ;
}
a:hover {
text-decoration: underline;
color: #CCCCCC;
}
a:active {
text-decoration: none;
}
-->
</style></head>
<body>
<table width="1024" cellpadding="0" cellspacing="0" align="center">
<td valign="top">
<?
include("menu.php");
?>
<tr>
<td height="320" align="center"> </td>
</tr>
<tr>
<td>
<b>Formulaire d'inscription</b><br />
<br />
<form method="post" action="form2mail.php">
<table border="0" cellpadding="5" cellspacing="0" width="620" height="650" align="center">
<tr height="20">
<td colspan="3">
Avant de créer ton compte, voici deux petites questions. Il n’y a pas de bonne ou de mauvaise réponse, elles ont uniquement pour but de vérifier tes réelles intentions quant à ton inscription.
</td>
</tr>
<tr>
<td width="50"></td>
<td width=""><font face=comic sans ms size=3><b><u>Pourquoi avoir choisi Etendard :</u></b></font></td>
<td width=""><textarea rows="6" name="Choix" cols="40"></textarea></td>
<td></td>
</tr>
<tr>
<td></td>
<td width=""><font face=comic sans ms size=3><b><u>Tes experiences en tant que rôliste :</u></b></font></td>
<td width=""><textarea rows="6" name="Experiences" cols="40"></textarea></td>
<td></td>
</tr>
<tr height="20">
<td colspan="3">
Si tu débutes assures toi d'avoir prit connaissances de ce qu'est le RP (page du site) et si t'as des questions n'hésites surtout pas les palabres sont la pour ca. Aussi bien les joueurs que les GM peuvent aider.
</td>
</tr>
<tr>
<td></td>
<td width=""><font face=comic sans ms size=3><b><u>Pseudo Forum* :</u></b></font></td>
<td width=""><input name="Pseudofofo" size="30" type="text"></input></td>
<td></td>
</tr>
<tr>
<td></td>
<td width=""><font face=comic sans ms size=3><b><u>Login souhaité :</u></b></font></td>
<td width=""><input name="Login" size="30" type="text"></input></td>
<td></td>
</tr>
<tr>
<td></td>
<td width=""><font face=comic sans ms size=3><b><u>Mot de Passe souhaité :</u></b></font></td>
<td width=""><input name="Password" size="30" type="text"></input></td>
<td></td>
</tr>
<tr height="20">
<td colspan="3">
En venant sur Etendard, tu t’engages à vouloir jouer avant tout dans une optique RP.<br />
<br />
*Les comptes forum sont a créer par les joueurs eux-même<br />
<br />
</td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="Valider" onClick="javascript:if(this.value != 'Patientez...') { this.value='Patientez...'; } else { return false; }"></td>
</tr>
<tr height="20">
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
</table>
</body>
</html>
Et la page form2mail.php
<?php
$TO = "[email protected]";
$DEFAULT_EXIT_PAGE = "http://mondelendill.free.fr/Etendard/inscription2.php";
$Choix = $_POST['Choix'];
$Experiences = $_POST['Experiences'];
$Pseudofofo = $_POST['Pseudofofo'];
$Login = $_POST['Login'];
$Password = $_POST['Password'];
$message = "<html>
<head>
<title>Formulaire d'inscription</title>
</head>
<body>
<center>
<table border=0 width=100% >
<tr height=20 width=100%>
<td width=50></td>
</tr>
<tr height=90 width=100%>
<td colspan=3 align=center><img src='http://l2-etendard.com/images/5.jpg'></td>
</tr>
<tr width=100%>
<td width=50></td>
<td width=* align=center>
<table>
<td>
<font color=red size=2 Style=' background-color : #000000'>
<b>Raison de la venu : </b><br />
<b>Expériences L2 : </b><br />
<b>Pseudo Forum : </b><br />
<b>Loign : </b><br />
<b>Mot de passe :</b>$Password<br />
</font>
</td>
<td>
<font color=red size=2 Style=' background-color : #000000'>
$Choix<br />
$Experiences<br />
$Pseudofofo<br />
$Login<br />
$Password<br />
</font>
</td>
</table>
</td>
</tr>
<tr height=20 width=100%>
<td width=50>
</td>
<td></td>
</tr>
</table>
</center>
</body>
</html>";
$subject = "Formulaire d'inscription à Etendard";
maail($TO, $subject, $message);
if(! $exit_page)
$exit_page = $DEFAULT_EXIT_PAGE;
Header("Location: ".$exit_page);
?>
Voila donc si quelqu'un peut m'aider merci d'avance