Bonne et heureuse année à tous

Je construis un petit système d'envoi de newsletter et j'aurai aimé avoir éventuellement vos conseils pour l'utilisation de WAmailer.
Sur ma première page, je rentre le message dans un textarea, si le contenu est trop long, l'envoi de mail plante. Est-ce que la taille du textarea a une incidence ou est-ce que c'est un problème de WAmailer :
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
 
// Longueur maximale des lignes dans l'email, telle que définie dans la rfc2822
var $maxlen  = 500;
// Reformatage des messages sur la limite de 78 caractères par ligne (word wrap) 
var $maxlen  = 78;

Voici le code pour la page ajouterEmailing :

Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
 
<?php
include('connect.php');
 
 
if (!empty($_POST)) {
 
	if (!empty($_POST['titre']) && !empty($_POST['contenu']) && !empty($_POST['date_envoi']) && !empty($_POST['code_emailing'])) 
		{
		   extract($_POST);
 
			$titre = mysql_real_escape_string($titre);
			$contenu = mysql_real_escape_string($contenu);
			$code_emailing = mysql_real_escape_string($code_emailing);
			$date_envoi = mysql_real_escape_string($date_envoi);
 
 
			$sql = "INSERT INTO emailing (id, code_emailing, titre, contenu, date_envoi, envoye) values ('','$code_emailing','$titre','$contenu','$date_envoi','$envoye')";
 
			mysql_query($sql);
 
			$success = 'OK - Emailing ajout&eacute; !';
 
		} 
			else 
			{ 
				$error = 'Il y a des erreurs, veuillez compl&eacute;ter tous les champs !!'; 
			}
 
					}
?>
 
 
 
 
 
<div id="content">
 
			<div id="contenu">
 
 
 
			<h1 align="center" style="color: #155A97;font-size: 16px;font-family: Arial, Helvetica, sans-serif;border:1px solid #AFD3F3;background-color:#FFFFFF;">Ajouter un emailing </h1>
			<br /><br />
 
			<table width="630" border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td width="107"><a href="ajouterEmailing.php" class="button blue smallBouton"  style="cursor:pointer;margin-left:0px">Ajout Emailing</a></td>
    <td width="113"><a href="index.php" class="button blue smallBouton"  style="cursor:pointer;margin-left:0px">Liste Emailings</a></td>
    <td width="239"></td>
    <td width="145">&nbsp;</td>
  </tr>
</table>
 
 
 
 
 
 
 
 
			<form method="POST" action="ajouterEmailing.php">
 
			<br />
			<table width="741" border="0" cellspacing="2" cellpadding="2" align="left" style="font-family:Arial; font-size:12px; color:#155a97;padding: 2px;border:1px solid #AFD3F3;background-color:#FFFFFF;" valign=top>
  <tr>
    <td bgcolor="#253E6C" style="color: #ffffff;font-size: 12px;font-family: Arial, Helvetica, sans-serif;padding-left:10px;">Code emailing : </td>
    <td align="left" style="font-family:Arial; font-size:12px; color:#155a97;padding: 5px;border-bottom:1px solid #AFD3F3;background-color:#EBF4FC;" valign=top>
	<label for="code_emailing"></label>
		<input type="text" id="code_emailing" name="code_emailing" style="width: 500px; height: 25px;border:1px solid #AFD3F3;font-family:Arial; font-size:12px; color:#155a97;" value="<?php echo isset($_POST['code_emailing']) ? $_POST['code_emailing'] : ''; ?>">
 
 
	</td>
  </tr>
  <tr>
    <td width="127" bgcolor="#253E6C" style="color: #ffffff;font-size: 12px;font-family: Arial, Helvetica, sans-serif;padding-left:10px;">Titre de l'emailing : </td>
		<td width="127" align="left" style="font-family:Arial; font-size:12px; color:#155a97;padding: 5px;border-bottom:1px solid #AFD3F3;background-color:#EBF4FC;" valign=top>
		<label for="titre"></label>
		<input type="text" id="titre" name="titre" style="width: 500px; height: 25px;border:1px solid #AFD3F3;font-family:Arial; font-size:12px; color:#155a97;" value="<?php echo isset($_POST['titre']) ? $_POST['titre'] : ''; ?>">		</td>
  </tr>
  <tr>
    <td width="127" bgcolor="#253E6C" style="color: #ffffff;font-size: 12px;font-family: Arial, Helvetica, sans-serif;padding-left:10px;" valign=top>Contenu : </td>
        <td align="left" style="font-family:Arial; font-size:12px; color:#155a97;padding: 5px;border:0;border:2;border-bottom:1px solid #AFD3F3;background-color:#EBF4FC;"><label for="contenu"></label>
        <textarea row="50" cols="80" type="text" id="contenu" name="contenu" style="width: 500px; height: 150px;border:1px solid #AFD3F3;font-family:Arial; font-size:12px; color:#155a97;"><?php echo isset($_POST['contenu']) ? $_POST['contenu'] : ''; ?></textarea>		  </td>
  </tr>
  <tr>
    <td width="127" bgcolor="#253E6C" style="color: #ffffff;font-size: 12px;font-family: Arial, Helvetica, sans-serif;padding-left:10px;">Date d'envoi  : </td>
		<td width="127" align="left" style="font-family:Arial; font-size:12px; color:#155a97;padding: 5px;border:0;border:2;border-bottom:1px solid #AFD3F3;background-color:#EBF4FC;" valign=top>
		<label for="date_envoi"></label>
					<input type="text" id="date_envoi" name="date_envoi" style="width: 100px; height: 25px;border:1px solid #AFD3F3;font-family:Arial; font-size:12px; color:#155a97;" value="<?php echo isset($_POST['date_envoi']) ? $_POST['date_envoi'] : ''; ?>">					</td>
  </tr>
  <tr>
    <td width="127" bgcolor="#253E6C" style="color: #ffffff;font-size: 12px;font-family: Arial, Helvetica, sans-serif;padding-left:10px;">Envoy&eacute;  :  </td>
		<td style="font-family:Arial; font-size:12px; color:#155a97;padding: 5px;border:0;border:2;border-bottom:1px solid #AFD3F3;background-color:#EBF4FC;" valign=top>
		<label for="online"></label>
					<select id="envoye" name="envoye" style="font-family:Arial; font-size:12px; color:#155a97;padding: 5px;border:1px solid #AFD3F3;background-color:#ffffff;" valign=top>
						<option <?php if (isset($_POST['envoye']) && $_POST['envoye'] == 'non') { echo 'selected'; } ?> value="non">Non</option>
						<option <?php if (isset($_POST['envoye']) && $_POST['envoye'] == 'oui') { echo 'selected'; } ?> value="oui">Oui</option>
					</select>		  </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>
	<?php if(!empty($success)) { ?><div id="success" style="height: 15px;font-family:Arial; font-size:12px; color:#ffffff;background-color:#02B970;text-align: center;"><?php echo $success; ?></div><?php } ?>
	<?php if(!empty($error)) { ?><div id="error" style="height: 15px;font-family:Arial; font-size:12px; color:#FFffff;background-color:#FF3737;text-align: center;"><?php echo $error; ?></div><?php } ?>	</td>
  </tr>
 
  <tr>
    <td>&nbsp;</td>
    <td><input type="submit" value="Ajouter" class="btn"></td>
  </tr>
</table>
 
 
 
 
			</form>
 
			</div>
 
		</div>


Merci beaucoup